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.001741/0.001741, allocations: 82.27 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001469/0.001469, allocations: 163 kB / 23.96 MB, free: 4.164 MB / 14.72 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.431/1.431, allocations: 177.1 MB / 204.3 MB, free: 9.199 MB / 190.1 MB " [Timeout remaining time 178] 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.382e-06/1.382e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.475e-05/2.613e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.00347/0.003496, allocations: 2.151 MB / 327.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.005221, allocations: 0.7348 MB / 327.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.00538, allocations: 8.094 kB / 328 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.005548, allocations: 36.31 kB / 328 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003235/0.005871, allocations: 95.53 kB / 328.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/0.006256, allocations: 113.6 kB / 328.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.006675, allocations: 308.7 kB / 328.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.006842, allocations: 45.44 kB / 328.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.007072, allocations: 159.9 kB / 328.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.007248, allocations: 88.3 kB / 328.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.4e-05/0.007292, allocations: 18.72 kB / 328.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.013e-05/0.007342, allocations: 20 kB / 328.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.357e-05/0.007405, allocations: 52.28 kB / 328.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.007527, allocations: 90.47 kB / 329 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.007924, allocations: 272.5 kB / 329.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.007929, allocations: 1.312 kB / 329.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.00793, allocations: 4 kB / 329.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.007937, allocations: 0 / 329.2 MB, free: 13.98 MB / 302.1 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.000898/0.008835, allocations: 454.4 kB / 329.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.00888, allocations: 10.08 kB / 329.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.588e-05/0.008956, allocations: 30.28 kB / 329.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.009312, allocations: 196.9 kB / 329.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.009342, allocations: 17.69 kB / 329.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.009394, allocations: 27.44 kB / 329.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004784/0.009872, allocations: 228.2 kB / 330.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.009898, allocations: 10.48 kB / 330.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.009921, allocations: 6.625 kB / 330.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.009933, allocations: 9.438 kB / 330.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003668/0.0103, allocations: 146.5 kB / 330.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.01174, allocations: 0.9097 MB / 331.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.01226, allocations: 206.1 kB / 331.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.01243, allocations: 70.83 kB / 331.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.01245, allocations: 2.219 kB / 331.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.01249, allocations: 37.78 kB / 331.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.01249, allocations: 0.75 kB / 331.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006377/0.01313, allocations: 193.8 kB / 331.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.01323, allocations: 135.9 kB / 331.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/0.01346, allocations: 206.6 kB / 332.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.01349, allocations: 30.83 kB / 332.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.01363, allocations: 165 kB / 332.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.054e-05/0.0137, allocations: 71.02 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.435e-05/0.01379, allocations: 47.17 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.01397, allocations: 335.9 kB / 332.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.01412, allocations: 54.09 kB / 332.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.01436, allocations: 164.5 kB / 332.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003986/0.01476, allocations: 234.1 kB / 333.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.01476, allocations: 5.188 kB / 333.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005688/0.01533, allocations: 257.5 kB / 333.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.01536, allocations: 9.641 kB / 333.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.01536, allocations: 4.75 kB / 333.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.01539, allocations: 5 kB / 333.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002899/0.01568, allocations: 72.5 kB / 333.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.01569, allocations: 9.562 kB / 333.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.01586, allocations: 24.72 kB / 333.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.01589, allocations: 15.19 kB / 333.6 MB, free: 10.54 MB / 302.1 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 0.0001742/0.01607, allocations: 136.6 kB / 333.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.01619, allocations: 25.55 kB / 333.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.428e-05/0.01624, allocations: 21.55 kB / 333.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.01625, allocations: 3.188 kB / 333.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.01626, allocations: 1.219 kB / 333.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.01627, allocations: 12.91 kB / 333.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004235/0.01669, allocations: 182 kB / 333.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.01669, allocations: 1.438 kB / 333.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.01698, allocations: 52 kB / 334 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.01699, allocations: 3.094 kB / 334 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.01701, allocations: 6.078 kB / 334 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.01702, allocations: 2.344 kB / 334 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.01702, allocations: 1.25 kB / 334 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007392/0.01776, allocations: 0.5226 MB / 334.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.374e-05/0.01782, allocations: 33.39 kB / 334.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.01786, allocations: 3.906 kB / 334.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.01808, allocations: 6.688 kB / 334.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.01814, allocations: 18.41 kB / 334.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.01816, allocations: 8.094 kB / 334.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.01832, allocations: 141.7 kB / 334.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01832, allocations: 0 / 334.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.01883, allocations: 59.02 kB / 334.8 MB, free: 9.582 MB / 302.1 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.0001603/0.01899, allocations: 107.9 kB / 334.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004265/0.01941, allocations: 151.7 kB / 335 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.01942, allocations: 1.281 kB / 335 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.01958, allocations: 59.66 kB / 335.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007482/0.02033, allocations: 60.05 kB / 335.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.02177, allocations: 0.6752 MB / 335.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.02193, allocations: 138.6 kB / 336 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.537e-05/0.02203, allocations: 22.78 kB / 336 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.917e-05/0.0221, allocations: 29.98 kB / 336 MB, free: 8.68 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.0221, allocations: 4 kB / 336 MB, free: 8.676 MB / 302.1 MB Notification: Performance of Templates: time 0.007073/0.02917, allocations: 2.351 MB / 338.4 MB, free: 7.441 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.509425465017557]