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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008514/0.0008517, allocations: 94.88 kB / 292.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3993/0.3993, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 15.98 kB / 459.9 MB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4135, allocations: 61.9 MB / 0.5096 GB, free: 38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.5389, allocations: 88.74 MB / 0.5962 GB, free: 6.383 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.5391, allocations: 79.95 kB / 0.5963 GB, free: 6.305 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01182/0.551, allocations: 4.805 MB / 0.601 GB, free: 1.496 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.551, allocations: 4 kB / 0.601 GB, free: 1.492 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.551, allocations: 4 kB / 0.601 GB, free: 1.488 MB / 410.7 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.0008637/0.5519, allocations: 0.5885 MB / 0.6016 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.5519, allocations: 8.031 kB / 0.6016 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.769e-05/0.552, allocations: 39.72 kB / 0.6016 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.5523, allocations: 244.4 kB / 0.6019 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.5523, allocations: 24.56 kB / 0.6019 GB, free: 0.5039 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.5524, allocations: 31.95 kB / 0.6019 GB, free: 484 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005576/0.5529, allocations: 332.5 kB / 0.6022 GB, free: 132 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.5529, allocations: 0 / 0.6022 GB, free: 132 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.553, allocations: 11.98 kB / 0.6022 GB, free: 120 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.553, allocations: 12 kB / 0.6023 GB, free: 108 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.5535, allocations: 258.1 kB / 0.6025 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.5554, allocations: 1.291 MB / 0.6038 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007754/0.5562, allocations: 0.4969 MB / 0.6042 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.5562, allocations: 240 / 0.6042 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.5563, allocations: 38.8 kB / 0.6043 GB, free: 13.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 1.373e-06/0.5563, allocations: 0 / 0.6043 GB, free: 13.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.002867/0.5591, allocations: 1.152 MB / 0.6054 GB, free: 12.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.5592, allocations: 59.36 kB / 0.6055 GB, free: 12.63 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.5594, allocations: 216.2 kB / 0.6057 GB, free: 12.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.5595, allocations: 29.7 kB / 0.6057 GB, free: 12.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.5596, allocations: 164.4 kB / 0.6059 GB, free: 12.22 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.34e-05/0.5597, allocations: 90.73 kB / 0.6059 GB, free: 12.13 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.5597, allocations: 4 kB / 0.6059 GB, free: 12.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.5598, allocations: 338.8 kB / 0.6063 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000225/0.5601, allocations: 112.5 kB / 0.6064 GB, free: 11.67 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.5603, allocations: 143.5 kB / 0.6065 GB, free: 11.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.5606, allocations: 124.4 kB / 0.6066 GB, free: 11.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5606, allocations: 0 / 0.6066 GB, free: 11.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001081/0.5617, allocations: 0.5143 MB / 0.6071 GB, free: 10.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.5617, allocations: 8 kB / 0.6071 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.5617, allocations: 0 / 0.6071 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009635/0.5627, allocations: 281.5 kB / 0.6074 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.5628, allocations: 27.98 kB / 0.6074 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004353/0.5672, allocations: 3.573 MB / 0.6109 GB, free: 6.711 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.5675, allocations: 39.83 kB / 0.611 GB, free: 6.672 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.5675, allocations: 12 kB / 0.611 GB, free: 6.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (19): * Single equations (assignments): 17 * 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.0002174/0.5677, allocations: 139.7 kB / 0.6111 GB, free: 6.516 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.004e-05/0.5678, allocations: 23.72 kB / 0.6111 GB, free: 6.492 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.097e-05/0.5679, allocations: 42.86 kB / 0.6112 GB, free: 6.453 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.5679, allocations: 0 / 0.6112 GB, free: 6.453 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/0.5679, allocations: 4 kB / 0.6112 GB, free: 6.449 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.5679, allocations: 7.984 kB / 0.6112 GB, free: 6.441 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/0.5696, allocations: 0.942 MB / 0.6121 GB, free: 5.438 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.5696, allocations: 3.953 kB / 0.6121 GB, free: 5.434 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.802e-05/0.5697, allocations: 15.98 kB / 0.6121 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008612/0.5706, allocations: 285.5 kB / 0.6124 GB, free: 5.133 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.5706, allocations: 4 kB / 0.6124 GB, free: 5.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003895/0.5745, allocations: 3.571 MB / 0.6159 GB, free: 1.293 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.5745, allocations: 0 / 0.6159 GB, free: 1.293 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.5756, allocations: 0.5914 MB / 0.6165 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.5758, allocations: 120.7 kB / 0.6166 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.5758, allocations: 4 kB / 0.6166 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.5761, allocations: 35.97 kB / 0.6166 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.721e-05/0.5762, allocations: 31.91 kB / 0.6166 GB, free: 484 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.5762, allocations: 16 kB / 0.6167 GB, free: 468 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00017/0.5764, allocations: 176.5 kB / 0.6168 GB, free: 292 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5764, allocations: 0 / 0.6168 GB, free: 292 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004236/0.5768, allocations: 103.8 kB / 0.6169 GB, free: 188 kB / 426.7 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.0001398/0.5769, allocations: 107.5 kB / 0.617 GB, free: 68 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009988/0.5779, allocations: 0.5596 MB / 0.6176 GB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.578, allocations: 3.938 kB / 0.6176 GB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005965/0.5786, allocations: 453.2 kB / 0.618 GB, free: 15.01 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.5789, allocations: 40.42 kB / 0.618 GB, free: 14.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009651/0.5799, allocations: 0.6209 MB / 0.6187 GB, free: 14.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.5803, allocations: 0.7718 MB / 0.6194 GB, free: 13.52 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 9.172e-05/0.5804, allocations: 18.3 kB / 0.6194 GB, free: 13.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/0.5804, allocations: 19.44 kB / 0.6194 GB, free: 13.48 MB / 442.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5804, allocations: 0 / 0.6194 GB, free: 13.48 MB / 442.7 MB Notification: Performance of Templates: time 0.007829/0.5883, allocations: 4.138 MB / 0.6235 GB, free: 9.387 MB / 442.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches