Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 212.4 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2319/0.2319, allocations: 46.95 MB / 360.9 MB, free: 4.055 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 71.91 kB / 0.4961 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3171, allocations: 66.04 MB / 0.5606 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004409/0.3215, allocations: 2.718 MB / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.3229, allocations: 0.6506 MB / 0.5639 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.3231, allocations: 4 kB / 0.5639 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.3233, allocations: 59.44 kB / 0.5639 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.3235, allocations: 87.19 kB / 0.564 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002114/0.3237, allocations: 91.86 kB / 0.5641 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000473/0.3242, allocations: 414 kB / 0.5645 GB, free: 132 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.3244, allocations: 91.31 kB / 0.5646 GB, free: 40 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.3246, allocations: 155.6 kB / 0.5647 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.3248, allocations: 139.3 kB / 0.5649 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.3248, allocations: 32 kB / 0.5649 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.203e-05/0.3249, allocations: 36 kB / 0.5649 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.794e-05/0.325, allocations: 71.81 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.3251, allocations: 147.4 kB / 0.5651 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004958/0.3256, allocations: 398.4 kB / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3256, allocations: 0 / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3256, allocations: 0 / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3257, allocations: 0 / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001118/0.3268, allocations: 0.5676 MB / 0.5661 GB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3268, allocations: 15.97 kB / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.886e-05/0.3269, allocations: 62.72 kB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.501e-05/0.327, allocations: 32.75 kB / 0.5662 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004878/0.3274, allocations: 214.7 kB / 0.5664 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.3275, allocations: 21.03 kB / 0.5664 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.3275, allocations: 24.38 kB / 0.5664 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006693/0.3282, allocations: 444.7 kB / 0.5669 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3282, allocations: 0 / 0.5669 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.3282, allocations: 8 kB / 0.5669 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.3282, allocations: 8 kB / 0.5669 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005104/0.3287, allocations: 242.5 kB / 0.5671 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.3309, allocations: 1.141 MB / 0.5682 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007145/0.3316, allocations: 286.7 kB / 0.5685 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.3319, allocations: 144.1 kB / 0.5686 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.3319, allocations: 4.234 kB / 0.5686 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.332, allocations: 42.73 kB / 0.5687 GB, free: 11.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.393e-06/0.332, allocations: 0 / 0.5687 GB, free: 11.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002884/0.3348, allocations: 0.8562 MB / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.3349, allocations: 59.39 kB / 0.5696 GB, free: 10.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.3352, allocations: 249 kB / 0.5698 GB, free: 10.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.3352, allocations: 29.7 kB / 0.5698 GB, free: 10.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.3354, allocations: 164.7 kB / 0.57 GB, free: 10.26 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.842e-05/0.3354, allocations: 91.2 kB / 0.5701 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.3355, allocations: 57.66 kB / 0.5701 GB, free: 10.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3357, allocations: 334.8 kB / 0.5705 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.3359, allocations: 99.94 kB / 0.5706 GB, free: 9.676 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.3362, allocations: 156.8 kB / 0.5707 GB, free: 9.508 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.3367, allocations: 244.7 kB / 0.5709 GB, free: 9.254 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3367, allocations: 0 / 0.5709 GB, free: 9.254 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001161/0.3379, allocations: 494.7 kB / 0.5714 GB, free: 8.758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3379, allocations: 8 kB / 0.5714 GB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3379, allocations: 0 / 0.5714 GB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009907/0.3389, allocations: 237.5 kB / 0.5716 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3391, allocations: 35.86 kB / 0.5717 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004599/0.3437, allocations: 3.458 MB / 0.5751 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.3439, allocations: 35.8 kB / 0.5751 GB, free: 4.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.3439, allocations: 12 kB / 0.5751 GB, free: 4.746 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.3441, allocations: 141.8 kB / 0.5752 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.812e-05/0.3441, allocations: 31.81 kB / 0.5753 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.819e-05/0.3442, allocations: 34.95 kB / 0.5753 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3442, allocations: 4 kB / 0.5753 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.3442, allocations: 3.938 kB / 0.5753 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3442, allocations: 4 kB / 0.5753 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001719/0.3459, allocations: 0.8133 MB / 0.5761 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.346, allocations: 0 / 0.5761 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.019e-05/0.346, allocations: 23.92 kB / 0.5761 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008972/0.3469, allocations: 237.5 kB / 0.5763 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.347, allocations: 4 kB / 0.5764 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004527/0.3515, allocations: 3.454 MB / 0.5797 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3515, allocations: 0 / 0.5797 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.3526, allocations: 0.5252 MB / 0.5802 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.3528, allocations: 47.72 kB / 0.5803 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.3528, allocations: 8 kB / 0.5803 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.3531, allocations: 31.97 kB / 0.5803 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.443e-05/0.3531, allocations: 27.94 kB / 0.5803 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3532, allocations: 8 kB / 0.5804 GB, free: 15.03 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001922/0.3534, allocations: 180.3 kB / 0.5805 GB, free: 14.86 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.3534, allocations: 0 / 0.5805 GB, free: 14.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004368/0.3538, allocations: 107.9 kB / 0.5806 GB, free: 14.75 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001477/0.3553, allocations: 1.061 MB / 0.5817 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.3564, allocations: 0.5401 MB / 0.5822 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3564, allocations: 0 / 0.5822 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006597/0.357, allocations: 421.5 kB / 0.5826 GB, free: 12.65 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.3574, allocations: 60.8 kB / 0.5827 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.3624, allocations: 3.048 MB / 0.5856 GB, free: 9.426 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.3626, allocations: 159.2 kB / 0.5858 GB, free: 9.254 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3627, allocations: 14.3 kB / 0.5858 GB, free: 9.238 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.3629, allocations: 79.41 kB / 0.5859 GB, free: 9.16 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3629, allocations: 0 / 0.5859 GB, free: 9.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05881/0.4217, allocations: 8.22 MB / 0.5939 GB, free: 1.152 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.2, allocations: 3.984 kB / 0.5939 GB, free: 1.148 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.246161086950451]