Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 104.7 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001935/0.001935, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.2 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2241/0.2241, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.52 kB / 408.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1307, allocations: 60.83 MB / 469.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004317/0.1351, allocations: 2.891 MB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.1363, allocations: 0.6467 MB / 472.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.1366, allocations: 8 kB / 472.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.1368, allocations: 51.5 kB / 472.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.137, allocations: 95.12 kB / 473 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.1372, allocations: 91.8 kB / 473 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003693/0.1376, allocations: 406.3 kB / 473.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.1378, allocations: 119.2 kB / 473.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.138, allocations: 151.5 kB / 473.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.1382, allocations: 155.4 kB / 473.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.84e-05/0.1382, allocations: 36 kB / 473.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.371e-05/0.1383, allocations: 36 kB / 473.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.66e-05/0.1384, allocations: 75.75 kB / 474 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.1385, allocations: 171.1 kB / 474.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003505/0.1389, allocations: 394.6 kB / 474.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1389, allocations: 0 / 474.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1389, allocations: 4 kB / 474.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1389, allocations: 0 / 474.6 MB, free: 9.039 MB / 350.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.0009652/0.1399, allocations: 0.6238 MB / 475.2 MB, free: 8.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1399, allocations: 8.031 kB / 475.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.14, allocations: 40.47 kB / 475.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.1403, allocations: 276.1 kB / 475.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.1403, allocations: 20.94 kB / 475.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.1403, allocations: 24.38 kB / 475.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.1409, allocations: 332.8 kB / 475.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1409, allocations: 4 kB / 475.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.1409, allocations: 8 kB / 475.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.141, allocations: 8 kB / 475.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004719/0.1414, allocations: 242.1 kB / 476.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.1434, allocations: 1.257 MB / 477.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000721/0.1441, allocations: 472.9 kB / 477.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.1444, allocations: 164.1 kB / 478 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1444, allocations: 240 / 478 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.1445, allocations: 42.8 kB / 478 MB, free: 5.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.162e-06/0.1445, allocations: 0 / 478 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00276/0.1472, allocations: 1.015 MB / 479.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.1473, allocations: 55.41 kB / 479.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.1475, allocations: 237 kB / 479.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.1475, allocations: 37.64 kB / 479.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1476, allocations: 168.2 kB / 479.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.052e-05/0.1477, allocations: 98.66 kB / 479.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.366e-05/0.1478, allocations: 49.7 kB / 479.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1479, allocations: 334.8 kB / 480 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.1482, allocations: 99.94 kB / 480.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.1484, allocations: 144.2 kB / 480.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004366/0.1488, allocations: 248.1 kB / 480.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1489, allocations: 4 kB / 480.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001067/0.1499, allocations: 494.5 kB / 481 MB, free: 2.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.15, allocations: 4 kB / 481 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.15, allocations: 7.938 kB / 481 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009306/0.1509, allocations: 241.5 kB / 481.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.1511, allocations: 27.98 kB / 481.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003999/0.1551, allocations: 3.689 MB / 484.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.1553, allocations: 43.7 kB / 485 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.1553, allocations: 8 kB / 485 MB, free: 13.93 MB / 366.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.0001755/0.1555, allocations: 137.8 kB / 485.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.818e-05/0.1556, allocations: 27.72 kB / 485.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.513e-05/0.1556, allocations: 34.86 kB / 485.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.1556, allocations: 4 kB / 485.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.1557, allocations: 8 kB / 485.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1557, allocations: 4 kB / 485.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.1572, allocations: 0.8858 MB / 486.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1572, allocations: 0 / 486.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.716e-05/0.1573, allocations: 15.98 kB / 486.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008426/0.1582, allocations: 249.8 kB / 486.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1582, allocations: 4 kB / 486.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00391/0.1621, allocations: 3.688 MB / 490 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1621, allocations: 4.406 kB / 490 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.1632, allocations: 0.5279 MB / 490.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1633, allocations: 116.7 kB / 490.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.978e-05/0.1634, allocations: 12 kB / 490.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.1637, allocations: 31.97 kB / 490.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.832e-05/0.1638, allocations: 23.97 kB / 490.8 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.1638, allocations: 11.94 kB / 490.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002339/0.164, allocations: 172.5 kB / 490.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.164, allocations: 0 / 490.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004482/0.1645, allocations: 111.8 kB / 491 MB, free: 7.484 MB / 366.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.0001235/0.1646, allocations: 107.2 kB / 491.2 MB, free: 7.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1656, allocations: 0.5642 MB / 491.7 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1657, allocations: 0 / 491.7 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006537/0.1663, allocations: 437.2 kB / 492.1 MB, free: 6.328 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.1668, allocations: 55.67 kB / 492.2 MB, free: 6.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008858/0.1677, allocations: 0.5041 MB / 492.7 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.1681, allocations: 0.7676 MB / 493.5 MB, free: 4.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.284e-05/0.1682, allocations: 26.28 kB / 493.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.001e-05/0.1682, allocations: 19.38 kB / 493.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1682, allocations: 0 / 493.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of Templates: time 0.008614/0.1768, allocations: 4.542 MB / 498.1 MB, free: 412 kB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches