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.001445/0.001445, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001436/0.001436, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.53/1.53, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2412/0.2412, allocations: 46.91 MB / 357.1 MB, free: 10.3 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.001943/0.001943, allocations: 71.89 kB / 0.4909 GB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1396, allocations: 65.99 MB / 0.5554 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004256/0.1438, allocations: 2.929 MB / 0.5582 GB, free: 2.875 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.145, allocations: 0.6856 MB / 0.5589 GB, free: 2.184 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1451, allocations: 4 kB / 0.5589 GB, free: 2.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.1452, allocations: 55.44 kB / 0.559 GB, free: 2.125 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.1454, allocations: 91.19 kB / 0.559 GB, free: 2.035 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.1456, allocations: 95.8 kB / 0.5591 GB, free: 1.941 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.146, allocations: 406.1 kB / 0.5595 GB, free: 1.543 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.1462, allocations: 94.94 kB / 0.5596 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.1464, allocations: 155.5 kB / 0.5598 GB, free: 1.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.1466, allocations: 163.3 kB / 0.5599 GB, free: 1.137 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.337e-05/0.1466, allocations: 36 kB / 0.5599 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.661e-05/0.1467, allocations: 36 kB / 0.56 GB, free: 1.066 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.107e-05/0.1468, allocations: 75.75 kB / 0.5601 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.1469, allocations: 171.2 kB / 0.5602 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.1473, allocations: 390.4 kB / 0.5606 GB, free: 452 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1473, allocations: 0 / 0.5606 GB, free: 452 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1473, allocations: 3.938 kB / 0.5606 GB, free: 448 kB / 414.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1474, allocations: 4 kB / 0.5606 GB, free: 444 kB / 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.001083/0.1484, allocations: 0.6429 MB / 0.5612 GB, free: 15.74 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1485, allocations: 9.109 kB / 0.5612 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.028e-05/0.1486, allocations: 62.72 kB / 0.5613 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.855e-05/0.1486, allocations: 40.75 kB / 0.5613 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.149, allocations: 272.4 kB / 0.5616 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.149, allocations: 20.94 kB / 0.5616 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.1491, allocations: 24.38 kB / 0.5616 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006204/0.1497, allocations: 336.6 kB / 0.562 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1497, allocations: 0 / 0.562 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.1497, allocations: 12 kB / 0.562 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.1498, allocations: 11.98 kB / 0.562 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005367/0.1503, allocations: 242.1 kB / 0.5622 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.1524, allocations: 1.246 MB / 0.5634 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007886/0.1532, allocations: 441.1 kB / 0.5638 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.1535, allocations: 147.5 kB / 0.564 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1535, allocations: 4.234 kB / 0.564 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.1535, allocations: 38.8 kB / 0.564 GB, free: 12.67 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.472e-06/0.1535, allocations: 0 / 0.564 GB, free: 12.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.003071/0.1566, allocations: 1.007 MB / 0.565 GB, free: 11.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.1566, allocations: 55.41 kB / 0.5651 GB, free: 11.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.1569, allocations: 241 kB / 0.5653 GB, free: 11.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.1569, allocations: 29.7 kB / 0.5653 GB, free: 11.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.1571, allocations: 176.6 kB / 0.5655 GB, free: 11.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.595e-05/0.1572, allocations: 95.22 kB / 0.5656 GB, free: 11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.756e-05/0.1573, allocations: 49.7 kB / 0.5656 GB, free: 10.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1574, allocations: 334.8 kB / 0.566 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.1577, allocations: 99.95 kB / 0.566 GB, free: 10.51 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.158, allocations: 155.9 kB / 0.5662 GB, free: 10.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.1585, allocations: 248.2 kB / 0.5664 GB, free: 10.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1585, allocations: 4 kB / 0.5664 GB, free: 10.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001158/0.1596, allocations: 494.7 kB / 0.5669 GB, free: 9.586 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.1596, allocations: 4 kB / 0.5669 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1596, allocations: 0 / 0.5669 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009927/0.1606, allocations: 241.5 kB / 0.5671 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.1608, allocations: 35.92 kB / 0.5672 GB, free: 9.305 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004758/0.1655, allocations: 3.688 MB / 0.5708 GB, free: 5.336 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.1658, allocations: 35.8 kB / 0.5708 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.1658, allocations: 12 kB / 0.5708 GB, free: 5.289 MB / 430.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.0001892/0.166, allocations: 139.1 kB / 0.571 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.833e-05/0.166, allocations: 27.92 kB / 0.571 GB, free: 5.117 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.088e-05/0.1661, allocations: 38.86 kB / 0.571 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1661, allocations: 0 / 0.571 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/0.1661, allocations: 7.938 kB / 0.571 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1661, allocations: 3.984 kB / 0.571 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.1679, allocations: 0.8766 MB / 0.5719 GB, free: 4.129 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1679, allocations: 4 kB / 0.5719 GB, free: 4.125 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.163e-05/0.168, allocations: 27.92 kB / 0.5719 GB, free: 4.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008989/0.1689, allocations: 226 kB / 0.5721 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.1689, allocations: 7.984 kB / 0.5721 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.1735, allocations: 3.688 MB / 0.5757 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1735, allocations: 0 / 0.5757 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.1746, allocations: 0.533 MB / 0.5763 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.1748, allocations: 128.8 kB / 0.5764 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.1748, allocations: 0 / 0.5764 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.175, allocations: 27.92 kB / 0.5764 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.839e-05/0.1751, allocations: 35.89 kB / 0.5764 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.1751, allocations: 12 kB / 0.5765 GB, free: 15.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.1753, allocations: 176.4 kB / 0.5766 GB, free: 14.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1753, allocations: 0 / 0.5766 GB, free: 14.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004256/0.1757, allocations: 107.9 kB / 0.5767 GB, free: 14.84 MB / 446.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.001489/0.1772, allocations: 1.065 MB / 0.5778 GB, free: 13.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.1783, allocations: 0.544 MB / 0.5783 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1783, allocations: 0 / 0.5783 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00065/0.179, allocations: 413.5 kB / 0.5787 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.1794, allocations: 58.81 kB / 0.5788 GB, free: 12.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004933/0.1843, allocations: 3.04 MB / 0.5817 GB, free: 9.527 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.1847, allocations: 0.7678 MB / 0.5825 GB, free: 8.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.135e-05/0.1848, allocations: 18.28 kB / 0.5825 GB, free: 8.715 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.1849, allocations: 79.41 kB / 0.5826 GB, free: 8.637 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1849, allocations: 4 kB / 0.5826 GB, free: 8.633 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03736/0.2223, allocations: 7.252 MB / 0.5896 GB, free: 1.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/10.47, allocations: 10.12 kB / 0.5897 GB, free: 1.562 MB / 446.1 MB " [Timeout remaining time 649] (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: 13.895924784941599]