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.000848/0.000848, allocations: 178 kB / 18.09 MB, free: 3.754 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.277/1.277, allocations: 223.3 MB / 242.1 MB, free: 9.988 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.000723/0.0007229, allocations: 88.12 kB / 293.3 MB, free: 10.58 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.3321/0.3321, allocations: 44.14 MB / 388.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004754/0.0004757, allocations: 8 kB / 461.1 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4007, allocations: 61.89 MB / 0.5107 GB, free: 37.69 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.532, allocations: 88.76 MB / 0.5974 GB, free: 6.332 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/0.5324, allocations: 83.94 kB / 0.5975 GB, free: 6.254 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01169/0.5442, allocations: 4.801 MB / 0.6022 GB, free: 1.445 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5442, allocations: 0 / 0.6022 GB, free: 1.445 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.5442, allocations: 8 kB / 0.6022 GB, free: 1.438 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.0008041/0.545, allocations: 0.577 MB / 0.6028 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.5451, allocations: 8.031 kB / 0.6028 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.351e-05/0.5452, allocations: 40.47 kB / 0.6028 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.5455, allocations: 266 kB / 0.6031 GB, free: 476 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.5455, allocations: 24.88 kB / 0.6031 GB, free: 452 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/0.5456, allocations: 24.38 kB / 0.6031 GB, free: 428 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005562/0.5461, allocations: 337.1 kB / 0.6034 GB, free: 72 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.5461, allocations: 192 / 0.6034 GB, free: 72 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.5462, allocations: 19.92 kB / 0.6034 GB, free: 52 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.5462, allocations: 8 kB / 0.6034 GB, free: 44 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004806/0.5467, allocations: 250.1 kB / 0.6037 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.5486, allocations: 1.291 MB / 0.6049 GB, free: 14.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007279/0.5493, allocations: 499.2 kB / 0.6054 GB, free: 13.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.5496, allocations: 169.2 kB / 0.6056 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.5496, allocations: 12.17 kB / 0.6056 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.5497, allocations: 42.78 kB / 0.6056 GB, free: 13.67 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 1.282e-06/0.5497, allocations: 0 / 0.6056 GB, free: 13.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.002745/0.5524, allocations: 1.163 MB / 0.6068 GB, free: 12.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.5525, allocations: 59.34 kB / 0.6068 GB, free: 12.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.5527, allocations: 240.9 kB / 0.6071 GB, free: 12.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.5528, allocations: 29.7 kB / 0.6071 GB, free: 12.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.5529, allocations: 164.4 kB / 0.6072 GB, free: 11.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.822e-05/0.553, allocations: 98.64 kB / 0.6073 GB, free: 11.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.553, allocations: 4 kB / 0.6073 GB, free: 11.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.5531, allocations: 342.8 kB / 0.6077 GB, free: 11.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.5534, allocations: 104.5 kB / 0.6078 GB, free: 11.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.5536, allocations: 147.6 kB / 0.6079 GB, free: 11.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.554, allocations: 247 kB / 0.6081 GB, free: 11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5541, allocations: 0 / 0.6081 GB, free: 11 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001034/0.5551, allocations: 0.5143 MB / 0.6086 GB, free: 10.47 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.5551, allocations: 4 kB / 0.6086 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.5551, allocations: 7.938 kB / 0.6087 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009053/0.5561, allocations: 277.5 kB / 0.6089 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.5562, allocations: 27.98 kB / 0.6089 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.5599, allocations: 3.507 MB / 0.6124 GB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.5601, allocations: 35.77 kB / 0.6124 GB, free: 6.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5601, allocations: 12.06 kB / 0.6124 GB, free: 6.328 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.000151/0.5603, allocations: 141.8 kB / 0.6126 GB, free: 6.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.549e-05/0.5604, allocations: 27.66 kB / 0.6126 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.702e-05/0.5604, allocations: 34.86 kB / 0.6126 GB, free: 6.117 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.5604, allocations: 4 kB / 0.6126 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.5605, allocations: 4 kB / 0.6126 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.5605, allocations: 0 / 0.6126 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.5621, allocations: 0.9493 MB / 0.6135 GB, free: 5.098 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.5621, allocations: 4 kB / 0.6136 GB, free: 5.094 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.706e-05/0.5621, allocations: 19.92 kB / 0.6136 GB, free: 5.074 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008067/0.563, allocations: 277.5 kB / 0.6138 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.563, allocations: 15.94 kB / 0.6139 GB, free: 4.781 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003498/0.5665, allocations: 3.499 MB / 0.6173 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5665, allocations: 3.938 kB / 0.6173 GB, free: 1.012 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.5675, allocations: 0.5805 MB / 0.6178 GB, free: 420 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.5677, allocations: 124.7 kB / 0.618 GB, free: 276 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.5677, allocations: 4 kB / 0.618 GB, free: 272 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.5679, allocations: 35.97 kB / 0.618 GB, free: 236 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/0.568, allocations: 27.95 kB / 0.618 GB, free: 208 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.568, allocations: 4 kB / 0.618 GB, free: 204 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001641/0.5682, allocations: 180.5 kB / 0.6182 GB, free: 24 kB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/0.5682, allocations: 0 / 0.6182 GB, free: 24 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004177/0.5686, allocations: 111.8 kB / 0.6183 GB, free: 15.91 MB / 442.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.0001229/0.5688, allocations: 107.1 kB / 0.6184 GB, free: 15.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009442/0.5697, allocations: 0.5756 MB / 0.619 GB, free: 15.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.5697, allocations: 4 kB / 0.619 GB, free: 15.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.5703, allocations: 441.3 kB / 0.6194 GB, free: 14.74 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004215/0.5707, allocations: 44.41 kB / 0.6194 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009269/0.5717, allocations: 0.617 MB / 0.62 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.572, allocations: 0.7678 MB / 0.6208 GB, free: 13.26 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.5721, allocations: 18.28 kB / 0.6208 GB, free: 13.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.591e-05/0.5722, allocations: 19.44 kB / 0.6208 GB, free: 13.22 MB / 442.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5722, allocations: 0 / 0.6208 GB, free: 13.22 MB / 442.7 MB Notification: Performance of Templates: time 0.008343/0.5805, allocations: 4.189 MB / 0.6249 GB, free: 9.074 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/jenkins1/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