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.0009376/0.0009378, allocations: 94.25 kB / 17.35 MB, free: 6.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.00125/0.00125, allocations: 170.9 kB / 18.25 MB, free: 5.508 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.475/1.475, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.208/0.208, allocations: 44.25 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003314/0.0003314, allocations: 12 kB / 410.3 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1564, allocations: 61.92 MB / 472.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003297/0.1598, allocations: 2.57 MB / 474.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.1609, allocations: 0.6312 MB / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.1611, allocations: 7.938 kB / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.1613, allocations: 39.69 kB / 475.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.1614, allocations: 87.3 kB / 475.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.1616, allocations: 75.92 kB / 475.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004426/0.1621, allocations: 386.4 kB / 476 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/0.1624, allocations: 107.9 kB / 476.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.1625, allocations: 123.5 kB / 476.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.1627, allocations: 143.4 kB / 476.4 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.1628, allocations: 16 kB / 476.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.132e-05/0.1628, allocations: 20 kB / 476.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.735e-05/0.1629, allocations: 59.75 kB / 476.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.1631, allocations: 176.8 kB / 476.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003693/0.1634, allocations: 366.5 kB / 477 MB, free: 8.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.1634, allocations: 4 kB / 477 MB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1635, allocations: 4 kB / 477 MB, free: 8.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1635, allocations: 3.938 kB / 477 MB, free: 8.547 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.001079/0.1645, allocations: 0.5926 MB / 477.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1646, allocations: 8.031 kB / 477.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.276e-05/0.1647, allocations: 32.56 kB / 477.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.165, allocations: 276.2 kB / 477.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.1651, allocations: 24.88 kB / 478 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.1651, allocations: 24.38 kB / 478 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.1657, allocations: 332.8 kB / 478.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1658, allocations: 4 kB / 478.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.1658, allocations: 12 kB / 478.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1658, allocations: 11.98 kB / 478.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005331/0.1664, allocations: 254.1 kB / 478.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/0.1685, allocations: 1.277 MB / 479.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008421/0.1694, allocations: 499.6 kB / 480.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.1697, allocations: 169.2 kB / 480.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.1697, allocations: 4.234 kB / 480.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.1698, allocations: 42.8 kB / 480.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.634e-06/0.1698, allocations: 0 / 480.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00347/0.1733, allocations: 1.178 MB / 481.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.1734, allocations: 55.41 kB / 481.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.1737, allocations: 237 kB / 482 MB, free: 3.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.1737, allocations: 29.7 kB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1738, allocations: 172.3 kB / 482.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.825e-05/0.1739, allocations: 90.59 kB / 482.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.294e-05/0.174, allocations: 33.66 kB / 482.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1741, allocations: 338.8 kB / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.1744, allocations: 107.9 kB / 482.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002834/0.1747, allocations: 160.2 kB / 482.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005122/0.1752, allocations: 264.7 kB / 483.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1752, allocations: 4 kB / 483.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0012/0.1764, allocations: 0.526 MB / 483.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1764, allocations: 10.41 kB / 483.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.1765, allocations: 4 kB / 483.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.1775, allocations: 285.4 kB / 484 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.1777, allocations: 35.98 kB / 484.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00534/0.1831, allocations: 3.522 MB / 487.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003102/0.1834, allocations: 47.77 kB / 487.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.1835, allocations: 8 kB / 487.6 MB, free: 13.3 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.0002562/0.1837, allocations: 149.7 kB / 487.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.1838, allocations: 27.7 kB / 487.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.639e-05/0.1839, allocations: 34.88 kB / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1839, allocations: 0 / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.288e-05/0.1839, allocations: 8 kB / 487.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.1839, allocations: 3.984 kB / 487.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.1858, allocations: 0.9444 MB / 488.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1858, allocations: 0 / 488.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.238e-05/0.1859, allocations: 19.98 kB / 488.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009896/0.1869, allocations: 281.5 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.187, allocations: 8 kB / 489.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005017/0.192, allocations: 3.515 MB / 492.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.192, allocations: 0 / 492.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.1934, allocations: 0.5837 MB / 493.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.1935, allocations: 128.6 kB / 493.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.1936, allocations: 4 kB / 493.3 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.1938, allocations: 35.97 kB / 493.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.1939, allocations: 35.89 kB / 493.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.194, allocations: 4 kB / 493.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001596/0.1941, allocations: 180.3 kB / 493.6 MB, free: 6.973 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1941, allocations: 0 / 493.6 MB, free: 6.973 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004593/0.1946, allocations: 107.8 kB / 493.7 MB, free: 6.867 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.0001391/0.1947, allocations: 99.52 kB / 493.8 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.1959, allocations: 0.5793 MB / 494.4 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1959, allocations: 0 / 494.4 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006451/0.1966, allocations: 449.2 kB / 494.8 MB, free: 5.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005004/0.1971, allocations: 51.78 kB / 494.9 MB, free: 5.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.1982, allocations: 0.6363 MB / 495.5 MB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006396/0.1989, allocations: 0.7715 MB / 496.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.199, allocations: 22.3 kB / 496.3 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.965e-05/0.1991, allocations: 15.44 kB / 496.3 MB, free: 4.148 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1991, allocations: 4 kB / 496.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of Templates: time 0.008924/0.208, allocations: 4.181 MB / 0.4888 GB, free: 15.99 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 -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