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.001242/0.001242, allocations: 108.1 kB / 17.21 MB, free: 6.289 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.001433/0.001433, allocations: 194 kB / 18.12 MB, free: 5.383 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.433/1.433, allocations: 222.9 MB / 241.8 MB, free: 15.51 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.2263/0.2263, allocations: 44.17 MB / 336.1 MB, free: 3.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 60.03 kB / 407.7 MB, free: 27.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1316, allocations: 60.84 MB / 468.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005309/0.137, allocations: 2.941 MB / 471.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.1386, allocations: 0.6467 MB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003961/0.139, allocations: 4 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000258/0.1393, allocations: 43.69 kB / 472.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.1396, allocations: 79.3 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.1398, allocations: 79.92 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004154/0.1402, allocations: 394.3 kB / 472.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.1405, allocations: 103.9 kB / 472.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.1406, allocations: 135.5 kB / 472.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.1408, allocations: 155.4 kB / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.1e-05/0.1409, allocations: 28 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.418e-05/0.141, allocations: 27.94 kB / 473.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.141, allocations: 59.77 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.1412, allocations: 159.2 kB / 473.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003614/0.1416, allocations: 370.6 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1416, allocations: 0 / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1416, allocations: 0 / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.525e-06/0.1416, allocations: 0 / 473.7 MB, free: 9.66 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.001248/0.1428, allocations: 0.638 MB / 474.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.1429, allocations: 12.03 kB / 474.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.585e-05/0.143, allocations: 36.47 kB / 474.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.1434, allocations: 280.1 kB / 474.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/0.1434, allocations: 16.94 kB / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.322e-05/0.1435, allocations: 28.38 kB / 474.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006317/0.1441, allocations: 320.8 kB / 475 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.1441, allocations: 3.938 kB / 475 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.1442, allocations: 12 kB / 475 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1442, allocations: 8 kB / 475.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005118/0.1447, allocations: 238.1 kB / 475.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.1468, allocations: 1.257 MB / 476.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000723/0.1475, allocations: 469.3 kB / 477 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/0.1478, allocations: 165.2 kB / 477.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.1478, allocations: 4.234 kB / 477.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.1479, allocations: 30.8 kB / 477.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 3.026e-06/0.1479, allocations: 0 / 477.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002711/0.1506, allocations: 1.018 MB / 478.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.1506, allocations: 59.41 kB / 478.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.1509, allocations: 241 kB / 478.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.1509, allocations: 33.64 kB / 478.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.151, allocations: 168.2 kB / 478.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.1511, allocations: 90.66 kB / 478.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.264e-05/0.1512, allocations: 53.7 kB / 478.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1513, allocations: 330.8 kB / 479.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.1515, allocations: 107.9 kB / 479.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.1518, allocations: 140.2 kB / 479.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.1522, allocations: 256.7 kB / 479.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1522, allocations: 0 / 479.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001009/0.1532, allocations: 490.5 kB / 480.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.1532, allocations: 8 kB / 480.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1533, allocations: 0 / 480.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009421/0.1542, allocations: 233.5 kB / 480.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.1544, allocations: 35.92 kB / 480.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003627/0.158, allocations: 3.425 MB / 483.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.1582, allocations: 39.7 kB / 483.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.1582, allocations: 8 kB / 483.9 MB, free: 14.84 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.0001424/0.1584, allocations: 141.8 kB / 484 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.283e-05/0.1584, allocations: 31.77 kB / 484.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.238e-05/0.1585, allocations: 34.88 kB / 484.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1585, allocations: 4 kB / 484.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.1585, allocations: 0 / 484.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1585, allocations: 7.922 kB / 484.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.1601, allocations: 0.8897 MB / 485 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1601, allocations: 4 kB / 485 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.738e-05/0.1602, allocations: 15.98 kB / 485 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007893/0.161, allocations: 233.4 kB / 485.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.161, allocations: 8 kB / 485.2 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003524/0.1645, allocations: 3.413 MB / 488.7 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1645, allocations: 3.938 kB / 488.7 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000986/0.1655, allocations: 0.5291 MB / 489.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.1656, allocations: 124.6 kB / 489.3 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.1657, allocations: 12 kB / 489.3 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.1659, allocations: 27.97 kB / 489.4 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.166, allocations: 31.89 kB / 489.4 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.1661, allocations: 4 kB / 489.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001562/0.1662, allocations: 176.4 kB / 489.6 MB, free: 8.777 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1662, allocations: 0 / 489.6 MB, free: 8.777 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000409/0.1666, allocations: 111.8 kB / 489.7 MB, free: 8.668 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.0001166/0.1668, allocations: 99.52 kB / 489.8 MB, free: 8.562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009477/0.1677, allocations: 0.5638 MB / 490.3 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1677, allocations: 0 / 490.3 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005835/0.1683, allocations: 437.2 kB / 490.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.1688, allocations: 48.34 kB / 490.8 MB, free: 7.473 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.1698, allocations: 0.6059 MB / 491.4 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.1702, allocations: 0.7716 MB / 492.2 MB, free: 6.047 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.1703, allocations: 26.28 kB / 492.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.121e-05/0.1704, allocations: 15.44 kB / 492.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1704, allocations: 0 / 492.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of Templates: time 0.008187/0.1786, allocations: 4.266 MB / 496.5 MB, free: 1.777 MB / 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