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.001838/0.001838, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001765/0.001765, allocations: 169.4 kB / 24.82 MB, free: 9.262 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.153/1.153, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.3061/0.3061, allocations: 32.81 MB / 294.6 MB, free: 1.234 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 3.406e-06/3.406e-06, allocations: 0 / 376.4 MB, free: 4.453 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.469e-05/3.809e-05, allocations: 6.312 kB / 376.4 MB, free: 4.445 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004109/0.004147, allocations: 2.619 MB / 379.1 MB, free: 1.809 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.005684, allocations: 0.7165 MB / 379.8 MB, free: 1.086 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.005899, allocations: 15.88 kB / 379.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.006108, allocations: 35.59 kB / 379.8 MB, free: 1.035 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/0.006281, allocations: 91.14 kB / 379.9 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.006652, allocations: 107.7 kB / 380 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.006984, allocations: 350.3 kB / 380.4 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.007167, allocations: 54.08 kB / 380.4 MB, free: 448 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003152/0.007482, allocations: 203.5 kB / 380.6 MB, free: 244 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.007634, allocations: 95.7 kB / 380.7 MB, free: 148 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.007678, allocations: 20 kB / 380.7 MB, free: 128 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.456e-05/0.007752, allocations: 27.98 kB / 380.8 MB, free: 100 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.685e-05/0.007799, allocations: 63.75 kB / 380.8 MB, free: 36 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.631e-05/0.007895, allocations: 91.77 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.008216, allocations: 227.1 kB / 381.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.00822, allocations: 0 / 381.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.008221, allocations: 0 / 381.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.008227, allocations: 0 / 381.1 MB, free: 15.72 MB / 362.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.0007083/0.008935, allocations: 0.6089 MB / 381.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.008986, allocations: 12.03 kB / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.009209, allocations: 72.69 kB / 381.8 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.00947, allocations: 231.9 kB / 382.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.00949, allocations: 16.88 kB / 382.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.009536, allocations: 32.33 kB / 382.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.009825, allocations: 243.3 kB / 382.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.009844, allocations: 16.09 kB / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.009863, allocations: 12.38 kB / 382.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.009876, allocations: 11.94 kB / 382.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.009992, allocations: 79.22 kB / 382.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.0112, allocations: 1.378 MB / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.01144, allocations: 208.2 kB / 384 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.75e-05/0.01151, allocations: 66.86 kB / 384.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.01154, allocations: 16.12 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.01158, allocations: 41.39 kB / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 3.256e-06/0.01158, allocations: 0 / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001195/0.01277, allocations: 0.8368 MB / 385 MB, free: 11.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.01284, allocations: 144.4 kB / 385.1 MB, free: 11.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.01304, allocations: 280.1 kB / 385.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.01306, allocations: 33.7 kB / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.0132, allocations: 223.2 kB / 385.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.152e-05/0.01328, allocations: 130.8 kB / 385.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.358e-05/0.01336, allocations: 75.78 kB / 385.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.01353, allocations: 0.5117 MB / 386.4 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.552e-05/0.01359, allocations: 32.97 kB / 386.4 MB, free: 9.996 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.01375, allocations: 226.7 kB / 386.6 MB, free: 9.691 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.01403, allocations: 311.1 kB / 386.9 MB, free: 9.305 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.01403, allocations: 4 kB / 386.9 MB, free: 9.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000314/0.01434, allocations: 269 kB / 387.2 MB, free: 9.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.01437, allocations: 8 kB / 387.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.01438, allocations: 7.984 kB / 387.2 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.01439, allocations: 4.406 kB / 387.2 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.0146, allocations: 104.1 kB / 387.3 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.01461, allocations: 11.94 kB / 387.3 MB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.442e-05/0.01471, allocations: 27.98 kB / 387.4 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.01472, allocations: 8 kB / 387.4 MB, free: 8.863 MB / 362.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 0.0001319/0.01486, allocations: 184.4 kB / 387.5 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.349e-05/0.01493, allocations: 39.81 kB / 387.6 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.092e-05/0.01499, allocations: 38 kB / 387.6 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.015, allocations: 7.984 kB / 387.6 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.015, allocations: 3.938 kB / 387.6 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.01501, allocations: 15.92 kB / 387.6 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008686/0.01588, allocations: 0.9124 MB / 388.6 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.01588, allocations: 4 kB / 388.6 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.01607, allocations: 71.89 kB / 388.6 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.01607, allocations: 0 / 388.6 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.01609, allocations: 12 kB / 388.6 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.0161, allocations: 4 kB / 388.7 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.0161, allocations: 4.047 kB / 388.7 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005598/0.01666, allocations: 0.7465 MB / 389.4 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.01669, allocations: 23.81 kB / 389.4 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.01672, allocations: 8 kB / 389.4 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.01685, allocations: 15.98 kB / 389.4 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.999e-05/0.01692, allocations: 27.89 kB / 389.5 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.01693, allocations: 8 kB / 389.5 MB, free: 6.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.637e-05/0.01703, allocations: 189.1 kB / 389.7 MB, free: 6.477 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01703, allocations: 0 / 389.7 MB, free: 6.477 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003393/0.01737, allocations: 67.94 kB / 389.7 MB, free: 6.41 MB / 362.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 0.0001321/0.0175, allocations: 103.2 kB / 389.8 MB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002421/0.01774, allocations: 160.3 kB / 390 MB, free: 6.137 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.01775, allocations: 0 / 390 MB, free: 6.137 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.874e-05/0.01784, allocations: 84.56 kB / 390.1 MB, free: 6.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.01831, allocations: 52.72 kB / 390.1 MB, free: 5.996 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.01963, allocations: 0.7396 MB / 390.9 MB, free: 5.203 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.819e-05/0.01973, allocations: 92.92 kB / 391 MB, free: 5.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.822e-05/0.01983, allocations: 34.95 kB / 391 MB, free: 5.059 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.01997, allocations: 114.2 kB / 391.1 MB, free: 4.945 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/0.01997, allocations: 0 / 391.1 MB, free: 4.945 MB / 362.7 MB Notification: Performance of Templates: time 0.005813/0.02579, allocations: 2.624 MB / 393.7 MB, free: 2.363 MB / 362.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: 3.693610217887908]