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.001462/0.001462, allocations: 108.3 kB / 18.4 MB, free: 4.691 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.001693/0.001693, allocations: 187 kB / 19.34 MB, free: 3.762 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.501/1.501, allocations: 222.9 MB / 243 MB, free: 15.09 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.2287/0.2287, allocations: 44.18 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 60.47 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1443, allocations: 60.84 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004221/0.1486, allocations: 2.904 MB / 473.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.1497, allocations: 0.6467 MB / 474.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.1499, allocations: 11.94 kB / 474.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.1501, allocations: 51.5 kB / 474.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.1502, allocations: 87.12 kB / 474.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.1504, allocations: 95.86 kB / 474.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004132/0.1509, allocations: 398.3 kB / 474.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.1511, allocations: 126.9 kB / 475 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.1513, allocations: 151.5 kB / 475.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.1515, allocations: 163.3 kB / 475.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.332e-05/0.1516, allocations: 32 kB / 475.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.797e-05/0.1516, allocations: 36 kB / 475.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.023e-05/0.1517, allocations: 75.75 kB / 475.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.1519, allocations: 167.2 kB / 475.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003586/0.1522, allocations: 394.6 kB / 476 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1522, allocations: 0 / 476 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1523, allocations: 0 / 476 MB, free: 8.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.1523, allocations: 0 / 476 MB, free: 8.348 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.001042/0.1533, allocations: 0.6316 MB / 476.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1534, allocations: 12.03 kB / 476.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.1535, allocations: 36.47 kB / 476.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004366/0.1539, allocations: 280.1 kB / 477 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.1539, allocations: 20.94 kB / 477 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.072e-05/0.154, allocations: 28.31 kB / 477 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.1546, allocations: 328.8 kB / 477.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1546, allocations: 0 / 477.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.1546, allocations: 16 kB / 477.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1546, allocations: 8 kB / 477.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.1551, allocations: 246 kB / 477.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.1571, allocations: 1.238 MB / 478.8 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007489/0.1579, allocations: 476.9 kB / 479.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.1582, allocations: 165.2 kB / 479.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.1583, allocations: 8.219 kB / 479.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.1583, allocations: 42.8 kB / 479.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.184e-06/0.1583, allocations: 0 / 479.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00273/0.161, allocations: 1.015 MB / 480.5 MB, free: 3.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.1611, allocations: 55.41 kB / 480.6 MB, free: 3.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.1613, allocations: 237 kB / 480.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1614, allocations: 33.7 kB / 480.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1615, allocations: 172.2 kB / 481 MB, free: 3.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.907e-05/0.1616, allocations: 90.66 kB / 481.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.954e-05/0.1617, allocations: 53.7 kB / 481.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1618, allocations: 334.8 kB / 481.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.162, allocations: 95.95 kB / 481.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.1623, allocations: 152.2 kB / 481.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.1627, allocations: 248.2 kB / 482 MB, free: 2.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1627, allocations: 0 / 482 MB, free: 2.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001032/0.1638, allocations: 494.6 kB / 482.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.1638, allocations: 7.984 kB / 482.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.1638, allocations: 4 kB / 482.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009007/0.1647, allocations: 233.5 kB / 482.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.1649, allocations: 39.86 kB / 482.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004097/0.169, allocations: 3.673 MB / 486.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.1692, allocations: 39.77 kB / 486.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.1693, allocations: 12 kB / 486.5 MB, free: 13.24 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.0001822/0.1694, allocations: 137.8 kB / 486.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.179e-05/0.1695, allocations: 27.72 kB / 486.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.334e-05/0.1696, allocations: 34.86 kB / 486.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1696, allocations: 4 kB / 486.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/0.1696, allocations: 11.92 kB / 486.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.1696, allocations: 7.984 kB / 486.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.1712, allocations: 0.8864 MB / 487.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1712, allocations: 3.938 kB / 487.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-05/0.1713, allocations: 19.92 kB / 487.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007888/0.1721, allocations: 237.5 kB / 487.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.1721, allocations: 8 kB / 487.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004133/0.1762, allocations: 3.68 MB / 491.5 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1763, allocations: 4.031 kB / 491.5 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.1773, allocations: 0.5248 MB / 492 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.1775, allocations: 124.7 kB / 492.2 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.1775, allocations: 8 kB / 492.2 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.1778, allocations: 23.98 kB / 492.2 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.1779, allocations: 31.89 kB / 492.2 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.1779, allocations: 8 kB / 492.2 MB, free: 7.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.1781, allocations: 172.5 kB / 492.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1781, allocations: 0 / 492.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004414/0.1785, allocations: 115.8 kB / 492.5 MB, free: 6.789 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.0001418/0.1787, allocations: 103.2 kB / 492.6 MB, free: 6.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.1797, allocations: 0.5565 MB / 493.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.1797, allocations: 0 / 493.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005712/0.1803, allocations: 449.1 kB / 493.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.1807, allocations: 48.36 kB / 493.6 MB, free: 5.586 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.1817, allocations: 0.5041 MB / 494.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.1822, allocations: 0.7676 MB / 494.9 MB, free: 4.262 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.923e-05/0.1823, allocations: 18.28 kB / 494.9 MB, free: 4.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.259e-05/0.1823, allocations: 23.44 kB / 495 MB, free: 4.219 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1823, allocations: 0 / 495 MB, free: 4.219 MB / 366.1 MB Notification: Performance of Templates: time 0.009153/0.1915, allocations: 4.543 MB / 499.5 MB, free: 15.71 MB / 382.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/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