Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 169.1 kB / 24.91 MB, free: 9.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.136/1.136, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3028/0.3028, allocations: 34.26 MB / 296.1 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 0 / 325.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.777e-05/4.037e-05, allocations: 3.016 kB / 325.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.006006/0.006047, allocations: 2.962 MB / 328.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.007674, allocations: 0.6977 MB / 328.9 MB, free: 3.965 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.007843, allocations: 7.938 kB / 328.9 MB, free: 3.957 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.008038, allocations: 51.5 kB / 329 MB, free: 3.906 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.008235, allocations: 95.06 kB / 329.1 MB, free: 3.812 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002087/0.008444, allocations: 99.84 kB / 329.2 MB, free: 3.715 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004295/0.008873, allocations: 418.6 kB / 329.6 MB, free: 3.305 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.009077, allocations: 89.95 kB / 329.7 MB, free: 3.219 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002564/0.009333, allocations: 227.5 kB / 329.9 MB, free: 2.996 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.009536, allocations: 119.7 kB / 330 MB, free: 2.879 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-05/0.009593, allocations: 36 kB / 330 MB, free: 2.844 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.842e-05/0.009641, allocations: 32 kB / 330.1 MB, free: 2.812 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-05/0.009708, allocations: 79.72 kB / 330.2 MB, free: 2.734 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.009836, allocations: 123.7 kB / 330.3 MB, free: 2.613 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.01017, allocations: 263.1 kB / 330.5 MB, free: 2.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.01017, allocations: 0 / 330.5 MB, free: 2.355 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.01017, allocations: 4 kB / 330.5 MB, free: 2.352 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.01017, allocations: 0 / 330.5 MB, free: 2.352 MB / 298.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.0007945/0.01097, allocations: 0.5403 MB / 331.1 MB, free: 1.789 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.01101, allocations: 12.03 kB / 331.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.238e-05/0.01109, allocations: 44.91 kB / 331.1 MB, free: 1.734 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.01135, allocations: 185.8 kB / 331.3 MB, free: 1.527 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.01138, allocations: 24.97 kB / 331.3 MB, free: 1.504 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.01142, allocations: 28.38 kB / 331.4 MB, free: 1.477 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.01184, allocations: 346 kB / 331.7 MB, free: 1.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.01185, allocations: 192 / 331.7 MB, free: 1.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.01187, allocations: 16.38 kB / 331.7 MB, free: 1.074 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.01188, allocations: 11.94 kB / 331.7 MB, free: 1.062 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001632/0.01205, allocations: 80.48 kB / 331.8 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.01347, allocations: 0.8814 MB / 332.7 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003124/0.01378, allocations: 201.9 kB / 332.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.363e-05/0.01388, allocations: 78.47 kB / 333 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.01389, allocations: 4.234 kB / 333 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.01392, allocations: 34.8 kB / 333 MB, free: 15.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 2.635e-06/0.01392, allocations: 0 / 333 MB, free: 15.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.001054/0.01497, allocations: 0.5324 MB / 333.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.738e-05/0.015, allocations: 55.34 kB / 333.6 MB, free: 15.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.01513, allocations: 204.3 kB / 333.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.01515, allocations: 33.7 kB / 333.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.826e-05/0.01521, allocations: 164.5 kB / 334 MB, free: 14.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.01526, allocations: 95.2 kB / 334.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.01532, allocations: 57.62 kB / 334.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.01542, allocations: 342.7 kB / 334.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.504e-05/0.01547, allocations: 28.59 kB / 334.5 MB, free: 14.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.899e-05/0.01554, allocations: 84.86 kB / 334.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.01567, allocations: 132.1 kB / 334.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01567, allocations: 0 / 334.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000349/0.01602, allocations: 262.9 kB / 335 MB, free: 13.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.01604, allocations: 4 kB / 335 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.01604, allocations: 4 kB / 335 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000444/0.01649, allocations: 177.6 kB / 335.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.071e-05/0.01658, allocations: 35.92 kB / 335.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.01832, allocations: 2.74 MB / 337.9 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.531e-05/0.01842, allocations: 31.78 kB / 338 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.01843, allocations: 8 kB / 338 MB, free: 10.49 MB / 314.7 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 9.427e-05/0.01852, allocations: 129.9 kB / 338.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.01856, allocations: 27.97 kB / 338.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.01859, allocations: 34.64 kB / 338.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.01859, allocations: 4 kB / 338.2 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.0186, allocations: 3.938 kB / 338.2 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01861, allocations: 0 / 338.2 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005741/0.01918, allocations: 496.4 kB / 338.6 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.01918, allocations: 4 kB / 338.6 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.766e-05/0.01923, allocations: 23.92 kB / 338.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000361/0.01959, allocations: 177.9 kB / 338.8 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.0196, allocations: 3.984 kB / 338.8 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.02117, allocations: 2.749 MB / 341.6 MB, free: 6.633 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.02118, allocations: 0 / 341.6 MB, free: 6.633 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.0215, allocations: 343 kB / 341.9 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.02157, allocations: 27.78 kB / 342 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.02158, allocations: 11.94 kB / 342 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.101e-05/0.02168, allocations: 19.98 kB / 342 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.02175, allocations: 35.94 kB / 342 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.02176, allocations: 11.94 kB / 342 MB, free: 6.172 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.71e-05/0.0218, allocations: 56.8 kB / 342.1 MB, free: 6.113 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0218, allocations: 0 / 342.1 MB, free: 6.113 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002774/0.02208, allocations: 111.8 kB / 342.2 MB, free: 6.004 MB / 314.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 (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 9.464e-05/0.02218, allocations: 84.41 kB / 342.3 MB, free: 5.914 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004246/0.0226, allocations: 433.9 kB / 342.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.02261, allocations: 4 kB / 342.7 MB, free: 5.461 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.02284, allocations: 381.8 kB / 343.1 MB, free: 5.059 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.02303, allocations: 40.61 kB / 343.1 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007081/0.02374, allocations: 478.1 kB / 343.6 MB, free: 4.523 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.617e-05/0.02381, allocations: 96.36 kB / 343.7 MB, free: 4.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.202e-05/0.02387, allocations: 18.28 kB / 343.7 MB, free: 4.387 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.02398, allocations: 91.34 kB / 343.8 MB, free: 4.297 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02398, allocations: 0 / 343.8 MB, free: 4.297 MB / 314.7 MB Notification: Performance of Templates: time 0.007858/0.03184, allocations: 4.991 MB / 348.8 MB, free: 15.41 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.356946601998061]