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.000852/0.0008519, allocations: 98.3 kB / 17 MB, free: 6.418 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.0009815/0.0009817, allocations: 188.6 kB / 17.89 MB, free: 5.945 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.581/1.581, allocations: 223.3 MB / 241.9 MB, free: 252 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.2692/0.2692, allocations: 44.25 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002981/0.0002982, allocations: 13.55 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1316, allocations: 61.92 MB / 471.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003484/0.1351, allocations: 2.459 MB / 474.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.1366, allocations: 0.6236 MB / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.1369, allocations: 4 kB / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.1371, allocations: 39.69 kB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002363/0.1374, allocations: 79.31 kB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.1376, allocations: 71.91 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000586/0.1382, allocations: 362.4 kB / 475.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.1385, allocations: 94.2 kB / 475.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.1387, allocations: 127.5 kB / 475.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.1389, allocations: 139.4 kB / 475.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.403e-05/0.139, allocations: 20 kB / 475.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.131e-05/0.1391, allocations: 16 kB / 475.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.227e-05/0.1391, allocations: 51.83 kB / 475.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.1393, allocations: 85.52 kB / 475.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.1397, allocations: 283.4 kB / 476 MB, free: 9.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1397, allocations: 4 kB / 476 MB, free: 9.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1397, allocations: 0 / 476 MB, free: 9.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.1397, allocations: 0 / 476 MB, free: 9.223 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.001011/0.1407, allocations: 0.5885 MB / 476.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1408, allocations: 16.55 kB / 476.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.1409, allocations: 31.62 kB / 476.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.1413, allocations: 267.1 kB / 476.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.1413, allocations: 20.5 kB / 476.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.1414, allocations: 31.95 kB / 477 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006917/0.1421, allocations: 340.4 kB / 477.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1421, allocations: 3.938 kB / 477.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.1421, allocations: 12 kB / 477.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.1422, allocations: 8 kB / 477.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005413/0.1427, allocations: 254.1 kB / 477.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.1449, allocations: 1.277 MB / 478.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007583/0.1457, allocations: 495.7 kB / 479.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.146, allocations: 165.3 kB / 479.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.146, allocations: 4.234 kB / 479.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.146, allocations: 42.8 kB / 479.5 MB, free: 5.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.813e-06/0.146, allocations: 3.938 kB / 479.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002813/0.1489, allocations: 1.171 MB / 480.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.1489, allocations: 55.41 kB / 480.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.1492, allocations: 244.9 kB / 481 MB, free: 3.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.1492, allocations: 33.7 kB / 481 MB, free: 3.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.1494, allocations: 160.4 kB / 481.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.055e-05/0.1495, allocations: 90.66 kB / 481.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.1495, allocations: 4 kB / 481.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1497, allocations: 334.8 kB / 481.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.1499, allocations: 115.9 kB / 481.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.1502, allocations: 144.2 kB / 481.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.1504, allocations: 127.9 kB / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1504, allocations: 0 / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001085/0.1515, allocations: 0.5338 MB / 482.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1515, allocations: 7.984 kB / 482.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.1516, allocations: 8.062 kB / 482.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009019/0.1525, allocations: 285.4 kB / 482.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.1526, allocations: 27.94 kB / 482.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.1567, allocations: 3.514 MB / 486.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.157, allocations: 35.69 kB / 486.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.157, allocations: 16.05 kB / 486.4 MB, free: 14.19 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.1572, allocations: 145.7 kB / 486.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.481e-05/0.1572, allocations: 23.72 kB / 486.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.83e-05/0.1573, allocations: 34.86 kB / 486.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.1573, allocations: 4 kB / 486.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.1573, allocations: 4 kB / 486.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1573, allocations: 0 / 486.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.1589, allocations: 0.9329 MB / 487.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1589, allocations: 3.938 kB / 487.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.603e-05/0.159, allocations: 23.98 kB / 487.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008488/0.1599, allocations: 289.4 kB / 487.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.1599, allocations: 4 kB / 487.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004014/0.1639, allocations: 3.511 MB / 491.4 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1639, allocations: 0 / 491.4 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.1652, allocations: 0.5837 MB / 492 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.1654, allocations: 128.7 kB / 492.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.1654, allocations: 3.984 kB / 492.1 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.1657, allocations: 35.94 kB / 492.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.1658, allocations: 27.95 kB / 492.2 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.1658, allocations: 12 kB / 492.2 MB, free: 8.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001654/0.166, allocations: 172.5 kB / 492.3 MB, free: 7.887 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.166, allocations: 0 / 492.3 MB, free: 7.887 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004926/0.1665, allocations: 103.9 kB / 492.4 MB, free: 7.785 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000146/0.1666, allocations: 107.2 kB / 492.6 MB, free: 7.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.1678, allocations: 0.5714 MB / 493.1 MB, free: 7.074 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/0.1678, allocations: 4 kB / 493.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006891/0.1685, allocations: 453.1 kB / 493.6 MB, free: 6.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004669/0.169, allocations: 48.41 kB / 493.6 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.1702, allocations: 0.6149 MB / 494.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.1706, allocations: 0.7679 MB / 495 MB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.1707, allocations: 18.3 kB / 495 MB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.709e-05/0.1708, allocations: 23.38 kB / 495 MB, free: 5.082 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1708, allocations: 0 / 495 MB, free: 5.082 MB / 366.1 MB Notification: Performance of Templates: time 0.009643/0.1804, allocations: 4.042 MB / 499.1 MB, free: 1.078 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