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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 110 kB / 21.23 MB, free: 0.6602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "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: 186.2 kB / 24.51 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2401/0.2401, allocations: 44.91 MB / 353.5 MB, free: 11.83 MB / 286.1 MB " [Timeout remaining time 179] 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=5003,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=5003,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 67.89 kB / 497.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4344/0.4363, allocations: 64.29 MB / 0.5488 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00497/0.4413, allocations: 2.937 MB / 0.5517 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.4428, allocations: 0.6567 MB / 0.5523 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.443, allocations: 9.156 kB / 0.5523 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.4433, allocations: 60.81 kB / 0.5524 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.4435, allocations: 85.41 kB / 0.5525 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.4437, allocations: 95.17 kB / 0.5526 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005149/0.4442, allocations: 403.4 kB / 0.5529 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.4444, allocations: 91.25 kB / 0.553 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.4446, allocations: 148.7 kB / 0.5532 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.4449, allocations: 169.4 kB / 0.5533 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.186e-05/0.445, allocations: 34.72 kB / 0.5534 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.587e-05/0.445, allocations: 33.91 kB / 0.5534 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.816e-05/0.4451, allocations: 83.67 kB / 0.5535 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.4453, allocations: 165 kB / 0.5536 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005157/0.4458, allocations: 392.1 kB / 0.554 GB, free: 9.102 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4458, allocations: 0 / 0.554 GB, free: 9.102 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4458, allocations: 1.188 kB / 0.554 GB, free: 9.102 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.4458, allocations: 0 / 0.554 GB, free: 9.102 MB / 398.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.001193/0.447, allocations: 0.564 MB / 0.5546 GB, free: 8.645 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4471, allocations: 14.45 kB / 0.5546 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.178e-05/0.4472, allocations: 38.45 kB / 0.5546 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.4477, allocations: 217.6 kB / 0.5548 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.4477, allocations: 23.94 kB / 0.5548 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.611e-05/0.4477, allocations: 30.31 kB / 0.5549 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.4484, allocations: 331 kB / 0.5552 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.4485, allocations: 3.938 kB / 0.5552 GB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.4485, allocations: 10.44 kB / 0.5552 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.4485, allocations: 7.594 kB / 0.5552 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006099/0.4491, allocations: 242 kB / 0.5554 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.4513, allocations: 1.206 MB / 0.5566 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.452, allocations: 293.9 kB / 0.5569 GB, free: 6.914 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.4523, allocations: 137.8 kB / 0.557 GB, free: 6.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.4523, allocations: 4.234 kB / 0.557 GB, free: 6.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.4524, allocations: 42.78 kB / 0.5571 GB, free: 6.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.285e-06/0.4524, allocations: 0 / 0.5571 GB, free: 6.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002796/0.4552, allocations: 0.864 MB / 0.5579 GB, free: 5.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.4552, allocations: 55.41 kB / 0.558 GB, free: 5.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.4556, allocations: 245.1 kB / 0.5582 GB, free: 5.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.4556, allocations: 29.7 kB / 0.5582 GB, free: 5.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.4557, allocations: 172.6 kB / 0.5584 GB, free: 5.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.945e-05/0.4558, allocations: 95.17 kB / 0.5585 GB, free: 5.293 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.4559, allocations: 53.7 kB / 0.5585 GB, free: 5.234 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4561, allocations: 330.8 kB / 0.5589 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.4563, allocations: 104 kB / 0.559 GB, free: 4.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.4566, allocations: 148.1 kB / 0.5591 GB, free: 4.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004922/0.4571, allocations: 252.7 kB / 0.5593 GB, free: 4.379 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4571, allocations: 0 / 0.5593 GB, free: 4.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001123/0.4582, allocations: 482.7 kB / 0.5598 GB, free: 3.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.4582, allocations: 8 kB / 0.5598 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.4583, allocations: 3.984 kB / 0.5598 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009583/0.4592, allocations: 241.5 kB / 0.56 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.4594, allocations: 31.92 kB / 0.5601 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004766/0.4641, allocations: 3.482 MB / 0.5635 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/0.4644, allocations: 43.75 kB / 0.5635 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.4644, allocations: 8 kB / 0.5635 GB, free: 15.85 MB / 414.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.0002449/0.4647, allocations: 149.8 kB / 0.5637 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.804e-05/0.4647, allocations: 27.86 kB / 0.5637 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.61e-05/0.4648, allocations: 38.89 kB / 0.5637 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.4648, allocations: 4 kB / 0.5637 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.4648, allocations: 3.938 kB / 0.5637 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4648, allocations: 3.938 kB / 0.5637 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.4665, allocations: 0.8467 MB / 0.5646 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.4665, allocations: 4 kB / 0.5646 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.024e-05/0.4666, allocations: 15.98 kB / 0.5646 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008416/0.4674, allocations: 245.4 kB / 0.5648 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.4675, allocations: 4 kB / 0.5648 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00433/0.4718, allocations: 3.474 MB / 0.5682 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4718, allocations: 0 / 0.5682 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.4729, allocations: 0.53 MB / 0.5687 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.4731, allocations: 47.77 kB / 0.5688 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.119e-05/0.4731, allocations: 4 kB / 0.5688 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.4733, allocations: 27.97 kB / 0.5688 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.4734, allocations: 31.95 kB / 0.5688 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.4734, allocations: 8 kB / 0.5688 GB, free: 10.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.4736, allocations: 172.5 kB / 0.569 GB, free: 9.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4736, allocations: 0 / 0.569 GB, free: 9.902 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004824/0.4741, allocations: 111.8 kB / 0.5691 GB, free: 9.793 MB / 414.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.0001529/0.4743, allocations: 108.9 kB / 0.5692 GB, free: 9.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.4754, allocations: 0.5445 MB / 0.5698 GB, free: 9.109 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4754, allocations: 4 kB / 0.5698 GB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006331/0.476, allocations: 421.2 kB / 0.5702 GB, free: 8.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.4764, allocations: 56.33 kB / 0.5702 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.4776, allocations: 0.512 MB / 0.5707 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004709/0.4781, allocations: 0.7678 MB / 0.5715 GB, free: 7.281 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.482e-05/0.4782, allocations: 18.3 kB / 0.5715 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.049e-05/0.4782, allocations: 19.44 kB / 0.5715 GB, free: 7.242 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4782, allocations: 0 / 0.5715 GB, free: 7.242 MB / 414.1 MB Notification: Performance of Templates: time 0.0106/0.4888, allocations: 4.818 MB / 0.5762 GB, free: 2.465 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6252719815820456]