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.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.001215/0.001215, allocations: 80.8 kB / 21.5 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.001289/0.001289, allocations: 170.4 kB / 24.91 MB, free: 8.688 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 0.9551/0.9551, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.2297/0.2297, allocations: 32.81 MB / 294.6 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 180] 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.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.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 8.62e-07/8.62e-07, allocations: 0 / 323.2 MB, free: 9.734 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.174e-05/1.26e-05, allocations: 5.438 kB / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00269/0.002703, allocations: 2.912 MB / 326.1 MB, free: 6.797 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.004045, allocations: 0.6937 MB / 326.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.004152, allocations: 7.938 kB / 326.8 MB, free: 6.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.00427, allocations: 51.48 kB / 326.9 MB, free: 6.039 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.004404, allocations: 107 kB / 327 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001341/0.004538, allocations: 87.86 kB / 327.1 MB, free: 5.848 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.004804, allocations: 422.1 kB / 327.5 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.004928, allocations: 86.59 kB / 327.6 MB, free: 5.352 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.005085, allocations: 227.5 kB / 327.8 MB, free: 5.129 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.005207, allocations: 127.6 kB / 327.9 MB, free: 5.004 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.005251, allocations: 40 kB / 327.9 MB, free: 4.965 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.929e-05/0.00528, allocations: 32 kB / 328 MB, free: 4.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.005322, allocations: 71.75 kB / 328 MB, free: 4.863 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.758e-05/0.0054, allocations: 123.7 kB / 328.2 MB, free: 4.742 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.005612, allocations: 263.1 kB / 328.4 MB, free: 4.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.005614, allocations: 0 / 328.4 MB, free: 4.484 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.005616, allocations: 4 kB / 328.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.005619, allocations: 0 / 328.4 MB, free: 4.48 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.0004988/0.006117, allocations: 0.5324 MB / 329 MB, free: 3.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.006147, allocations: 11.98 kB / 329 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.006199, allocations: 44.91 kB / 329 MB, free: 3.871 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.006365, allocations: 193.8 kB / 329.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.006384, allocations: 21.03 kB / 329.2 MB, free: 3.637 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.006408, allocations: 24.38 kB / 329.2 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002502/0.006658, allocations: 361.8 kB / 329.6 MB, free: 3.215 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.006667, allocations: 192 / 329.6 MB, free: 3.215 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.006684, allocations: 12.38 kB / 329.6 MB, free: 3.203 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.006692, allocations: 11.94 kB / 329.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.05e-05/0.006782, allocations: 72.56 kB / 329.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008462/0.007628, allocations: 0.8853 MB / 330.6 MB, free: 2.191 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.007866, allocations: 203.1 kB / 330.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.348e-05/0.007949, allocations: 81.28 kB / 330.9 MB, free: 1.906 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.007961, allocations: 8.234 kB / 330.9 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.00798, allocations: 34.8 kB / 330.9 MB, free: 1.855 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.192e-06/0.007981, allocations: 0 / 330.9 MB, free: 1.855 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008872/0.008868, allocations: 0.5323 MB / 331.4 MB, free: 1.312 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.234e-05/0.00889, allocations: 59.41 kB / 331.5 MB, free: 1.242 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.008991, allocations: 202.5 kB / 331.7 MB, free: 1.027 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.009007, allocations: 29.7 kB / 331.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.604e-05/0.009063, allocations: 164.5 kB / 331.9 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.009104, allocations: 95.19 kB / 332 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.009168, allocations: 61.62 kB / 332 MB, free: 0.668 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.052e-05/0.009238, allocations: 330.7 kB / 332.3 MB, free: 344 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.85e-05/0.009277, allocations: 28.58 kB / 332.4 MB, free: 316 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.291e-05/0.00934, allocations: 88.78 kB / 332.5 MB, free: 212 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.00945, allocations: 136.2 kB / 332.6 MB, free: 60 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.009453, allocations: 4 kB / 332.6 MB, free: 56 kB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003148/0.009768, allocations: 263 kB / 332.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.009777, allocations: 8 kB / 332.9 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.009782, allocations: 4 kB / 332.9 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003851/0.01017, allocations: 165.5 kB / 333 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.095e-05/0.01024, allocations: 31.98 kB / 333.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.01193, allocations: 2.746 MB / 335.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.278e-05/0.012, allocations: 31.72 kB / 335.8 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.01201, allocations: 8 kB / 335.8 MB, free: 12.61 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 7.38e-05/0.01209, allocations: 125.8 kB / 336 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.364e-05/0.01212, allocations: 19.98 kB / 336 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.01214, allocations: 38.58 kB / 336 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.01215, allocations: 4.031 kB / 336 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.01215, allocations: 7.938 kB / 336 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.01216, allocations: 0 / 336 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005017/0.01266, allocations: 0.4886 MB / 336.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.01266, allocations: 7.984 kB / 336.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.797e-05/0.0127, allocations: 20 kB / 336.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003199/0.01302, allocations: 169.5 kB / 336.7 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.01302, allocations: 4 kB / 336.7 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.01433, allocations: 2.737 MB / 339.5 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01433, allocations: 3.984 kB / 339.5 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002836/0.01461, allocations: 339 kB / 339.8 MB, free: 8.422 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.01465, allocations: 27.8 kB / 339.8 MB, free: 8.395 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.01467, allocations: 15.95 kB / 339.8 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.397e-05/0.01476, allocations: 23.98 kB / 339.9 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.0148, allocations: 27.94 kB / 339.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.01481, allocations: 8 kB / 339.9 MB, free: 8.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.093e-05/0.01485, allocations: 60.75 kB / 340 MB, free: 8.258 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01485, allocations: 0 / 340 MB, free: 8.258 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002186/0.01507, allocations: 111.8 kB / 340.1 MB, free: 8.148 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 7.293e-05/0.01514, allocations: 92.34 kB / 340.2 MB, free: 8.051 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003592/0.0155, allocations: 429.7 kB / 340.6 MB, free: 7.605 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.0155, allocations: 4 kB / 340.6 MB, free: 7.602 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004601/0.01596, allocations: 390 kB / 341 MB, free: 7.191 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.01614, allocations: 52.06 kB / 341 MB, free: 7.145 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005789/0.01672, allocations: 466.7 kB / 341.5 MB, free: 6.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.24e-05/0.01677, allocations: 100.4 kB / 341.6 MB, free: 6.543 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.974e-05/0.01682, allocations: 18.3 kB / 341.6 MB, free: 6.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.01692, allocations: 95.34 kB / 341.7 MB, free: 6.426 MB / 314.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01692, allocations: 0 / 341.7 MB, free: 6.426 MB / 314.7 MB Notification: Performance of Templates: time 0.006023/0.02294, allocations: 4.985 MB / 346.7 MB, free: 1.547 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9690477158874273]