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.000921/0.000921, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001277/0.001277, allocations: 167.9 kB / 25.61 MB, free: 8.582 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.9547/0.9547, allocations: 177.1 MB / 206.1 MB, free: 4.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.1362/0.1362, allocations: 32.8 MB / 295.4 MB, free: 15.37 MB / 282.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 1.603e-06/1.603e-06, allocations: 0 / 377.3 MB, free: 25.61 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.184e-05/5.344e-05, allocations: 6.312 kB / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005184/0.005238, allocations: 2.898 MB / 380.2 MB, free: 22.68 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.006366, allocations: 0.67 MB / 380.8 MB, free: 22.01 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.0065, allocations: 8 kB / 380.8 MB, free: 22 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.311e-05/0.006593, allocations: 51.44 kB / 380.9 MB, free: 21.95 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.006711, allocations: 99.06 kB / 381 MB, free: 21.85 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.006846, allocations: 91.86 kB / 381.1 MB, free: 21.76 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.007122, allocations: 422.1 kB / 381.5 MB, free: 21.35 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.007285, allocations: 91.23 kB / 381.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.007459, allocations: 235.5 kB / 381.8 MB, free: 21.03 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.007577, allocations: 123.6 kB / 381.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.225e-05/0.00761, allocations: 32 kB / 382 MB, free: 20.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.836e-05/0.007638, allocations: 36 kB / 382 MB, free: 20.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.762e-05/0.007675, allocations: 75.73 kB / 382.1 MB, free: 20.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.936e-05/0.007745, allocations: 123.7 kB / 382.2 MB, free: 20.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002231/0.007968, allocations: 259.1 kB / 382.4 MB, free: 20.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.007972, allocations: 4 kB / 382.4 MB, free: 20.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.007973, allocations: 0 / 382.4 MB, free: 20.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.007978, allocations: 0 / 382.4 MB, free: 20.39 MB / 314.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.0005884/0.008566, allocations: 0.6598 MB / 383.1 MB, free: 19.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.0086, allocations: 8.031 kB / 383.1 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.924e-05/0.008669, allocations: 60.7 kB / 383.2 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.00889, allocations: 214.5 kB / 383.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.008923, allocations: 17.03 kB / 383.4 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.008948, allocations: 28.38 kB / 383.4 MB, free: 19.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002632/0.009212, allocations: 354.5 kB / 383.8 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.009223, allocations: 4.188 kB / 383.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.009242, allocations: 12.38 kB / 383.8 MB, free: 18.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.00925, allocations: 7.938 kB / 383.8 MB, free: 18.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.009352, allocations: 92.45 kB / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.01041, allocations: 1.152 MB / 385 MB, free: 17.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.01063, allocations: 210.4 kB / 385.2 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.646e-05/0.01071, allocations: 83.62 kB / 385.3 MB, free: 17.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.01072, allocations: 8.234 kB / 385.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.01074, allocations: 37.62 kB / 385.4 MB, free: 17.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.323e-06/0.01074, allocations: 0 / 385.4 MB, free: 17.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009462/0.01169, allocations: 0.5814 MB / 385.9 MB, free: 16.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.452e-05/0.0117, allocations: 55.41 kB / 386 MB, free: 16.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.01181, allocations: 262.7 kB / 386.3 MB, free: 16.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.01182, allocations: 33.7 kB / 386.3 MB, free: 16.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.233e-05/0.01189, allocations: 219.2 kB / 386.5 MB, free: 16.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.01193, allocations: 91.17 kB / 386.6 MB, free: 16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/0.01198, allocations: 67.33 kB / 386.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.232e-05/0.01203, allocations: 0.5078 MB / 387.2 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.199e-05/0.01208, allocations: 31.97 kB / 387.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.315e-05/0.01214, allocations: 103 kB / 387.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.01225, allocations: 142.9 kB / 387.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01225, allocations: 0 / 387.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003281/0.01258, allocations: 320.4 kB / 387.8 MB, free: 14.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.01259, allocations: 4 kB / 387.8 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.0126, allocations: 0 / 387.8 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004274/0.01302, allocations: 187.2 kB / 387.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.161e-05/0.0131, allocations: 31.92 kB / 388 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.01449, allocations: 3.897 MB / 391.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.199e-05/0.01459, allocations: 27.84 kB / 391.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.01459, allocations: 4.141 kB / 391.9 MB, free: 10.38 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.981e-05/0.01467, allocations: 180.5 kB / 392.1 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.01471, allocations: 31.86 kB / 392.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.01474, allocations: 34.59 kB / 392.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.01474, allocations: 0 / 392.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.01475, allocations: 4 kB / 392.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.01475, allocations: 3.984 kB / 392.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007006/0.01545, allocations: 0.6223 MB / 392.8 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01546, allocations: 3.938 kB / 392.8 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.061e-05/0.0155, allocations: 23.92 kB / 392.8 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003713/0.01587, allocations: 179.2 kB / 393 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.01588, allocations: 4 kB / 393 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.01716, allocations: 3.901 MB / 396.9 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.01717, allocations: 0 / 396.9 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.01748, allocations: 439.7 kB / 397.3 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.553e-05/0.01754, allocations: 47.7 kB / 397.4 MB, free: 4.602 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.01756, allocations: 4 kB / 397.4 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.408e-05/0.01765, allocations: 23.98 kB / 397.4 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.286e-05/0.01771, allocations: 31.92 kB / 397.4 MB, free: 4.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.01772, allocations: 12 kB / 397.4 MB, free: 4.531 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.918e-05/0.01777, allocations: 171.1 kB / 397.6 MB, free: 4.363 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01777, allocations: 0 / 397.6 MB, free: 4.363 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003002/0.01807, allocations: 107.9 kB / 397.7 MB, free: 4.258 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.899e-05/0.01815, allocations: 99.25 kB / 397.8 MB, free: 4.152 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003885/0.01854, allocations: 0.5457 MB / 398.3 MB, free: 3.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.01854, allocations: 4 kB / 398.3 MB, free: 3.566 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.01875, allocations: 498.9 kB / 398.8 MB, free: 3.039 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.01899, allocations: 50.44 kB / 398.9 MB, free: 2.992 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006824/0.01967, allocations: 490.7 kB / 399.4 MB, free: 2.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.533e-05/0.01973, allocations: 92.62 kB / 399.4 MB, free: 2.371 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.923e-05/0.01979, allocations: 18.28 kB / 399.5 MB, free: 2.352 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.632e-05/0.01988, allocations: 122.2 kB / 399.6 MB, free: 2.23 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01989, allocations: 0 / 399.6 MB, free: 2.23 MB / 314.7 MB Notification: Performance of Templates: time 0.007987/0.02787, allocations: 5.153 MB / 404.7 MB, free: 13.16 MB / 330.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: 3.4908347032032907]