Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001159/0.001159, allocations: 80.8 kB / 21.49 MB, free: 2.988 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.001636/0.001636, allocations: 168.3 kB / 24.91 MB, free: 8.77 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.9587/0.9587, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.2841/0.2841, allocations: 32.81 MB / 294.6 MB, free: 1.246 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.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.0.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.0.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 323.2 MB, free: 9.738 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.292e-05/1.409e-05, allocations: 3.078 kB / 323.2 MB, free: 9.734 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002688/0.002702, allocations: 2.608 MB / 325.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.003794, allocations: 0.733 MB / 326.5 MB, free: 6.371 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.003908, allocations: 7.938 kB / 326.5 MB, free: 6.363 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.004032, allocations: 39.53 kB / 326.6 MB, free: 6.324 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.004162, allocations: 107.1 kB / 326.7 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.004405, allocations: 91.86 kB / 326.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.004654, allocations: 355 kB / 327.1 MB, free: 5.781 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.00477, allocations: 64.03 kB / 327.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.004978, allocations: 203.5 kB / 327.4 MB, free: 5.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.005088, allocations: 95.7 kB / 327.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.005113, allocations: 20 kB / 327.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.311e-05/0.005167, allocations: 31.98 kB / 327.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.507e-05/0.005202, allocations: 55.77 kB / 327.6 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.312e-05/0.005265, allocations: 99.73 kB / 327.7 MB, free: 5.223 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.005471, allocations: 219.1 kB / 327.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.005473, allocations: 0 / 327.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.005474, allocations: 3.938 kB / 327.9 MB, free: 5.004 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.005477, allocations: 0 / 327.9 MB, free: 5.004 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004884/0.005966, allocations: 0.4932 MB / 328.4 MB, free: 4.488 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.005995, allocations: 8.031 kB / 328.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.006129, allocations: 56.89 kB / 328.5 MB, free: 4.426 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.006314, allocations: 209.1 kB / 328.7 MB, free: 4.195 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.006333, allocations: 16.88 kB / 328.7 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.006371, allocations: 36.31 kB / 328.7 MB, free: 4.141 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.006587, allocations: 238.3 kB / 328.9 MB, free: 3.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.0066, allocations: 4.141 kB / 328.9 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.006614, allocations: 12.38 kB / 329 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.006624, allocations: 11.94 kB / 329 MB, free: 3.855 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.945e-05/0.006713, allocations: 79.41 kB / 329 MB, free: 3.781 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007141/0.007427, allocations: 1.006 MB / 330.1 MB, free: 2.707 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001498/0.007577, allocations: 170.3 kB / 330.2 MB, free: 2.504 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.71e-05/0.007624, allocations: 51.56 kB / 330.3 MB, free: 2.441 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.007639, allocations: 8 kB / 330.3 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.007658, allocations: 38.69 kB / 330.3 MB, free: 2.387 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.082e-06/0.007659, allocations: 0 / 330.3 MB, free: 2.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008533/0.008513, allocations: 0.8183 MB / 331.1 MB, free: 1.457 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.008562, allocations: 140.5 kB / 331.3 MB, free: 1.289 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.00868, allocations: 221 kB / 331.5 MB, free: 1.059 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.008696, allocations: 29.7 kB / 331.5 MB, free: 1.023 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.008758, allocations: 173 kB / 331.7 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/0.008813, allocations: 122.9 kB / 331.8 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-05/0.008871, allocations: 74.14 kB / 331.9 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.813e-05/0.008949, allocations: 338.8 kB / 332.2 MB, free: 320 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.868e-05/0.008988, allocations: 36.91 kB / 332.2 MB, free: 284 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.009097, allocations: 178.1 kB / 332.4 MB, free: 44 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.009275, allocations: 240.8 kB / 332.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.009278, allocations: 4 kB / 332.7 MB, free: 15.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0002087/0.009486, allocations: 229.5 kB / 332.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.009498, allocations: 8 kB / 332.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.009505, allocations: 4 kB / 332.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.009518, allocations: 8 kB / 332.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.009688, allocations: 99.81 kB / 333 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.009694, allocations: 7.938 kB / 333 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.976e-05/0.009774, allocations: 19.98 kB / 333 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.009788, allocations: 16.28 kB / 333 MB, free: 15.35 MB / 314.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 7.535e-05/0.009864, allocations: 137.7 kB / 333.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.229e-05/0.009916, allocations: 31.97 kB / 333.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.43e-05/0.00995, allocations: 33.77 kB / 333.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.009953, allocations: 8 kB / 333.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.009958, allocations: 3.938 kB / 333.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.009961, allocations: 0 / 333.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005293/0.01049, allocations: 0.662 MB / 333.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.01049, allocations: 12.06 kB / 333.9 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.01065, allocations: 71.89 kB / 334 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.01065, allocations: 4 kB / 334 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.01066, allocations: 8 kB / 334 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.01066, allocations: 4 kB / 334 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01066, allocations: 0 / 334 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.01093, allocations: 0.5191 MB / 334.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.113e-05/0.01095, allocations: 23.81 kB / 334.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.01097, allocations: 11.98 kB / 334.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.01109, allocations: 12 kB / 334.6 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.01114, allocations: 31.95 kB / 334.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.01114, allocations: 7.984 kB / 334.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.411e-05/0.01119, allocations: 70.78 kB / 334.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01119, allocations: 0 / 334.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002596/0.01145, allocations: 64 kB / 334.7 MB, free: 13.57 MB / 314.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 7.662e-05/0.01153, allocations: 97.02 kB / 334.8 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.0117, allocations: 165.7 kB / 335 MB, free: 13.31 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.0117, allocations: 0 / 335 MB, free: 13.31 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.691e-05/0.01177, allocations: 76.69 kB / 335.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.01209, allocations: 46.94 kB / 335.1 MB, free: 13.19 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007556/0.01285, allocations: 0.6363 MB / 335.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.524e-05/0.01291, allocations: 92.92 kB / 335.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.395e-05/0.01299, allocations: 34.95 kB / 335.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.01309, allocations: 99.28 kB / 336 MB, free: 12.26 MB / 314.7 MB Notification: Performance of SimCode: time 7.62e-07/0.01309, allocations: 0 / 336 MB, free: 12.26 MB / 314.7 MB Notification: Performance of Templates: time 0.004044/0.01713, allocations: 2.476 MB / 338.5 MB, free: 9.844 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.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.926227680873126]