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.001331/0.001331, allocations: 115.1 kB / 18.45 MB, free: 4.566 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.001467/0.001467, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.566/1.566, allocations: 230.6 MB / 254.8 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.2267/0.2267, allocations: 46.92 MB / 357.8 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: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 67.91 kB / 0.4921 GB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1301, allocations: 65.99 MB / 0.5565 GB, free: 5.328 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005282/0.1353, allocations: 2.929 MB / 0.5594 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.137, allocations: 0.6817 MB / 0.56 GB, free: 1.691 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003437/0.1374, allocations: 7.938 kB / 0.56 GB, free: 1.684 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.1376, allocations: 55.5 kB / 0.5601 GB, free: 1.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.1379, allocations: 87.12 kB / 0.5602 GB, free: 1.543 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.1382, allocations: 95.86 kB / 0.5603 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006086/0.1388, allocations: 414.1 kB / 0.5607 GB, free: 1.043 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.1391, allocations: 90.94 kB / 0.5608 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002523/0.1393, allocations: 151.5 kB / 0.5609 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.1396, allocations: 163.3 kB / 0.5611 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.515e-05/0.1397, allocations: 39.94 kB / 0.5611 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.706e-05/0.1398, allocations: 36 kB / 0.5611 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.774e-05/0.1398, allocations: 71.75 kB / 0.5612 GB, free: 0.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.14, allocations: 175.2 kB / 0.5614 GB, free: 336 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005101/0.1406, allocations: 394.4 kB / 0.5617 GB, free: 15.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1406, allocations: 4 kB / 0.5617 GB, free: 15.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1406, allocations: 0 / 0.5617 GB, free: 15.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.1406, allocations: 0 / 0.5617 GB, free: 15.94 MB / 430.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.001286/0.1419, allocations: 0.6429 MB / 0.5624 GB, free: 15.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1419, allocations: 9.109 kB / 0.5624 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.82e-05/0.142, allocations: 40.73 kB / 0.5624 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.1425, allocations: 272.4 kB / 0.5627 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.1425, allocations: 20.94 kB / 0.5627 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.838e-05/0.1425, allocations: 32.31 kB / 0.5627 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.1432, allocations: 328.8 kB / 0.563 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1432, allocations: 0 / 0.563 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.1433, allocations: 12 kB / 0.5631 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.1433, allocations: 8 kB / 0.5631 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005502/0.1438, allocations: 242.1 kB / 0.5633 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002275/0.1461, allocations: 1.246 MB / 0.5645 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008592/0.147, allocations: 447.3 kB / 0.5649 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.1473, allocations: 141.3 kB / 0.5651 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.1473, allocations: 4.234 kB / 0.5651 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.1473, allocations: 30.8 kB / 0.5651 GB, free: 12.26 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.903e-06/0.1473, allocations: 0 / 0.5651 GB, free: 12.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.003195/0.1505, allocations: 1.012 MB / 0.5661 GB, free: 11.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.1506, allocations: 59.41 kB / 0.5661 GB, free: 11.13 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003417/0.1509, allocations: 237 kB / 0.5664 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.151, allocations: 29.7 kB / 0.5664 GB, free: 10.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.1511, allocations: 172.5 kB / 0.5666 GB, free: 10.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.443e-05/0.1512, allocations: 95.22 kB / 0.5667 GB, free: 10.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.1513, allocations: 53.7 kB / 0.5667 GB, free: 10.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1515, allocations: 338.8 kB / 0.567 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.1518, allocations: 107.9 kB / 0.5671 GB, free: 10.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.152, allocations: 144 kB / 0.5673 GB, free: 9.926 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005416/0.1526, allocations: 252.2 kB / 0.5675 GB, free: 9.664 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1526, allocations: 0 / 0.5675 GB, free: 9.664 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001273/0.1539, allocations: 498.7 kB / 0.568 GB, free: 9.164 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.1539, allocations: 4 kB / 0.568 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1539, allocations: 0 / 0.568 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.155, allocations: 245.4 kB / 0.5682 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.1552, allocations: 31.98 kB / 0.5683 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/0.161, allocations: 3.685 MB / 0.5719 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/0.1613, allocations: 35.8 kB / 0.5719 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.1614, allocations: 12.06 kB / 0.5719 GB, free: 4.871 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.000241/0.1616, allocations: 148 kB / 0.572 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.762e-05/0.1617, allocations: 23.86 kB / 0.5721 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.1618, allocations: 34.88 kB / 0.5721 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1618, allocations: 0 / 0.5721 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.1618, allocations: 11.92 kB / 0.5721 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1618, allocations: 0 / 0.5721 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.1639, allocations: 0.8834 MB / 0.573 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.1639, allocations: 4 kB / 0.573 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.432e-05/0.164, allocations: 19.98 kB / 0.573 GB, free: 3.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009705/0.1649, allocations: 241.4 kB / 0.5732 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.165, allocations: 4 kB / 0.5732 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004771/0.1697, allocations: 3.681 MB / 0.5768 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1697, allocations: 0 / 0.5768 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.171, allocations: 0.5329 MB / 0.5773 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.1711, allocations: 124.8 kB / 0.5775 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.1712, allocations: 4 kB / 0.5775 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.1714, allocations: 31.97 kB / 0.5775 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.1715, allocations: 23.97 kB / 0.5775 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.1716, allocations: 15.94 kB / 0.5775 GB, free: 14.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.1718, allocations: 172.5 kB / 0.5777 GB, free: 14.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1718, allocations: 0 / 0.5777 GB, free: 14.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004873/0.1723, allocations: 111.8 kB / 0.5778 GB, free: 14.42 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.0001431/0.1724, allocations: 107.2 kB / 0.5779 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.1736, allocations: 0.5401 MB / 0.5784 GB, free: 13.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.1736, allocations: 4 kB / 0.5784 GB, free: 13.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006885/0.1743, allocations: 417.1 kB / 0.5788 GB, free: 13.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.1747, allocations: 50.3 kB / 0.5789 GB, free: 13.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.1759, allocations: 0.5596 MB / 0.5794 GB, free: 12.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/0.1764, allocations: 0.7677 MB / 0.5802 GB, free: 11.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.576e-05/0.1764, allocations: 19.44 kB / 0.5802 GB, free: 11.85 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1764, allocations: 0 / 0.5802 GB, free: 11.85 MB / 446.1 MB Notification: Performance of Templates: time 0.009565/0.186, allocations: 5.598 MB / 0.5857 GB, free: 6.262 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] 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: 8.782662796002114]