Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.000941/0.000941, 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.001073/0.001073, allocations: 168.7 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.9891/0.9891, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.423e-05/2.57e-05, allocations: 6.312 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003566/0.003592, allocations: 2.314 MB / 275.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.005054, allocations: 0.7592 MB / 276.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.005202, allocations: 7.938 kB / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.005341, allocations: 39.58 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002938/0.005635, allocations: 91.2 kB / 276.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.005951, allocations: 123.6 kB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003339/0.006285, allocations: 306.5 kB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.006416, allocations: 42.53 kB / 277.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.00663, allocations: 167.5 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.006785, allocations: 95.69 kB / 277.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.703e-05/0.006822, allocations: 20 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.31e-05/0.006856, allocations: 20 kB / 277.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.422e-05/0.0069, allocations: 55.75 kB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.296e-05/0.006983, allocations: 79.83 kB / 277.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.007217, allocations: 195.2 kB / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.00722, allocations: 0 / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.00722, allocations: 0 / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.007225, allocations: 0 / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0005821/0.007808, allocations: 436.2 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.007842, allocations: 8.031 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.007904, allocations: 36.91 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.008146, allocations: 177.4 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.008172, allocations: 20.88 kB / 278.4 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.008209, allocations: 24.33 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.008494, allocations: 204.7 kB / 278.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.008511, allocations: 192 / 278.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.008533, allocations: 12.38 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.008544, allocations: 7.938 kB / 278.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.008661, allocations: 63.77 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009224/0.009583, allocations: 0.7995 MB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.009795, allocations: 146 kB / 279.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.165e-05/0.009847, allocations: 43.42 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.009863, allocations: 4 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.00989, allocations: 38.56 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.009891, allocations: 0 / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002853/0.01018, allocations: 113.5 kB / 279.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.01023, allocations: 128.5 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.01038, allocations: 194.8 kB / 280.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.01039, allocations: 29.7 kB / 280.2 MB, free: 10.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.01047, allocations: 160.2 kB / 280.4 MB, free: 10.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.01052, allocations: 63.42 kB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.01062, allocations: 61.62 kB / 280.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.69e-05/0.01072, allocations: 334.7 kB / 280.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.312e-05/0.01076, allocations: 19.98 kB / 280.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.01087, allocations: 133.7 kB / 281 MB, free: 9.438 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.01105, allocations: 189.5 kB / 281.2 MB, free: 9.203 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.01105, allocations: 4 kB / 281.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002926/0.01134, allocations: 165.3 kB / 281.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.01136, allocations: 8 kB / 281.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.01137, allocations: 4 kB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.01138, allocations: 4 kB / 281.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.01167, allocations: 84.39 kB / 281.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.495e-06/0.01168, allocations: 7.938 kB / 281.4 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.01179, allocations: 32.19 kB / 281.5 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.01181, allocations: 16 kB / 281.5 MB, free: 8.883 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (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 prepare postOptimizeDAE: time 8.624e-05/0.0119, allocations: 121.8 kB / 281.6 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.671e-05/0.01198, allocations: 15.98 kB / 281.6 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.061e-05/0.01202, allocations: 25.02 kB / 281.6 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.01203, allocations: 4 kB / 281.6 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.01203, allocations: 3.938 kB / 281.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.01204, allocations: 0 / 281.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003508/0.01239, allocations: 133.7 kB / 281.8 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.01239, allocations: 3.938 kB / 281.8 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/0.01263, allocations: 63.2 kB / 281.8 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.01264, allocations: 7.938 kB / 281.9 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.01265, allocations: 8.75 kB / 281.9 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.01266, allocations: 4 kB / 281.9 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.01266, allocations: 3.938 kB / 281.9 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.01298, allocations: 457.1 kB / 282.3 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.826e-05/0.01301, allocations: 19.89 kB / 282.3 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.01303, allocations: 3.984 kB / 282.3 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.01324, allocations: 11.94 kB / 282.4 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.035e-05/0.01328, allocations: 19.97 kB / 282.4 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.01329, allocations: 4 kB / 282.4 MB, free: 7.949 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.046e-05/0.01335, allocations: 46.06 kB / 282.4 MB, free: 7.902 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01335, allocations: 0 / 282.4 MB, free: 7.902 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004497/0.0138, allocations: 63.89 kB / 282.5 MB, free: 7.84 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.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 (16): * Single equations (assignments): 16 * 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.0001008/0.0139, allocations: 80.36 kB / 282.6 MB, free: 7.754 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001828/0.01408, allocations: 117.3 kB / 282.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.01409, allocations: 0 / 282.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.151e-05/0.01415, allocations: 44.78 kB / 282.7 MB, free: 7.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005791/0.01473, allocations: 58.2 kB / 282.8 MB, free: 7.539 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.01586, allocations: 0.5226 MB / 283.3 MB, free: 6.973 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.157e-05/0.01594, allocations: 76.33 kB / 283.4 MB, free: 6.879 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.01604, allocations: 26.78 kB / 283.4 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.01619, allocations: 99.28 kB / 283.5 MB, free: 6.758 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01619, allocations: 0 / 283.5 MB, free: 6.758 MB / 266.7 MB Notification: Performance of Templates: time 0.005946/0.02214, allocations: 2.75 MB / 286.2 MB, free: 4.078 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.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.728331204969436]