Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.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.0008308/0.0008308, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00119/0.00202, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007249/0.0007249, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009477/0.001673, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.036/1.036, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1128/1.149, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.3081/0.3081, allocations: 34.26 MB / 278.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02761/0.3357, allocations: 13.1 MB / 291.5 MB, free: 7.344 MB / 282.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.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 292.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/2.012e-05, allocations: 3.406 kB / 292.8 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002724/0.002744, allocations: 2.683 MB / 295.5 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.003811, allocations: 0.7298 MB / 296.2 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.003959, allocations: 15.88 kB / 296.2 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.004066, allocations: 39.52 kB / 296.3 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.004208, allocations: 99.14 kB / 296.4 MB, free: 2.652 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002154/0.004424, allocations: 99.78 kB / 296.5 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002769/0.0047, allocations: 350.3 kB / 296.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.00483, allocations: 64.08 kB / 296.9 MB, free: 2.145 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.005086, allocations: 216.7 kB / 297.1 MB, free: 1.934 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.005208, allocations: 99.69 kB / 297.2 MB, free: 1.836 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.953e-05/0.005237, allocations: 28 kB / 297.2 MB, free: 1.809 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.576e-05/0.005313, allocations: 24 kB / 297.2 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.281e-05/0.005346, allocations: 43.81 kB / 297.3 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.002e-05/0.005406, allocations: 79.81 kB / 297.4 MB, free: 1.664 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.005633, allocations: 199.2 kB / 297.6 MB, free: 1.469 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.124e-05/0.005644, allocations: 0 / 297.6 MB, free: 1.469 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.005644, allocations: 0 / 297.6 MB, free: 1.469 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.005655, allocations: 4 kB / 297.6 MB, free: 1.465 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006364/0.006292, allocations: 0.5514 MB / 298.1 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.006328, allocations: 15.97 kB / 298.1 MB, free: 0.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002112/0.006539, allocations: 138 kB / 298.3 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.006775, allocations: 193.2 kB / 298.4 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.006792, allocations: 20.88 kB / 298.5 MB, free: 500 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.006833, allocations: 32.33 kB / 298.5 MB, free: 468 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.00707, allocations: 230.3 kB / 298.7 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.007088, allocations: 12.16 kB / 298.7 MB, free: 196 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.007102, allocations: 12.38 kB / 298.7 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.007111, allocations: 7.938 kB / 298.8 MB, free: 176 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.412e-05/0.007205, allocations: 75.89 kB / 298.8 MB, free: 104 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008166/0.008022, allocations: 1.025 MB / 299.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.008186, allocations: 162.4 kB / 300 MB, free: 14.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.728e-05/0.008233, allocations: 51.42 kB / 300.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.008253, allocations: 4 kB / 300.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.008279, allocations: 42.69 kB / 300.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.343e-06/0.00828, allocations: 0 / 300.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009431/0.009223, allocations: 0.8254 MB / 300.9 MB, free: 13.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.009272, allocations: 144.4 kB / 301.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.009397, allocations: 224.9 kB / 301.3 MB, free: 13.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.009413, allocations: 29.7 kB / 301.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.145e-05/0.009484, allocations: 165 kB / 301.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.009542, allocations: 127 kB / 301.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.088e-05/0.009602, allocations: 66.17 kB / 301.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.716e-05/0.00969, allocations: 350.7 kB / 302 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.881e-05/0.009728, allocations: 28.98 kB / 302 MB, free: 12.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.805e-05/0.009827, allocations: 170.1 kB / 302.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.01001, allocations: 253 kB / 302.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.01001, allocations: 0 / 302.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000208/0.01022, allocations: 229.1 kB / 302.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.01023, allocations: 4 kB / 302.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.01024, allocations: 8.312 kB / 302.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.01025, allocations: 4 kB / 302.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.01049, allocations: 119.8 kB / 302.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.0105, allocations: 11.98 kB / 302.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.66e-05/0.01059, allocations: 20.27 kB / 302.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.0106, allocations: 23.98 kB / 302.9 MB, free: 11.63 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.486e-05/0.01069, allocations: 141.7 kB / 303 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.01077, allocations: 23.98 kB / 303 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.893e-05/0.01081, allocations: 37.77 kB / 303.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.01081, allocations: 4 kB / 303.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.01081, allocations: 3.938 kB / 303.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.01082, allocations: 7.984 kB / 303.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005923/0.01141, allocations: 0.6539 MB / 303.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01141, allocations: 0 / 303.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.01159, allocations: 87.88 kB / 303.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.147e-05/0.01161, allocations: 27.73 kB / 303.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.01161, allocations: 4 kB / 303.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.01163, allocations: 11.98 kB / 303.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.01163, allocations: 0 / 303.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.01163, allocations: 4 kB / 303.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.01202, allocations: 0.5305 MB / 304.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.01205, allocations: 12.06 kB / 304.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.01217, allocations: 12 kB / 304.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.01222, allocations: 27.94 kB / 304.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.01223, allocations: 8 kB / 304.5 MB, free: 9.973 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.19e-05/0.01229, allocations: 74.78 kB / 304.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01229, allocations: 0 / 304.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002831/0.01257, allocations: 67.94 kB / 304.6 MB, free: 9.828 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.825e-05/0.01266, allocations: 86.44 kB / 304.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001979/0.01286, allocations: 166.2 kB / 304.8 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/0.01287, allocations: 8 kB / 304.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.226e-05/0.01296, allocations: 100.8 kB / 305 MB, free: 9.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.01341, allocations: 293.8 kB / 305.2 MB, free: 9.137 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.01589, allocations: 0.6263 MB / 305.9 MB, free: 8.461 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.732e-05/0.01596, allocations: 96.91 kB / 306 MB, free: 8.344 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.148e-05/0.01606, allocations: 34.95 kB / 306 MB, free: 8.309 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.01617, allocations: 91.36 kB / 306.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01617, allocations: 0 / 306.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of Templates: time 0.004819/0.02099, allocations: 2.386 MB / 308.5 MB, free: 5.887 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1337910993024707]