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.0009267/0.0009267, allocations: 77.97 kB / 21.42 MB, free: 3.07 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.001029/0.001029, allocations: 170.8 kB / 24.82 MB, free: 9.316 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.9247/0.9247, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.784e-06/1.784e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.378e-05/1.556e-05, allocations: 6.25 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002932/0.002947, allocations: 2.267 MB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008438/0.003791, allocations: 0.7322 MB / 276.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.038e-05/0.003882, allocations: 11.94 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.003986, allocations: 35.53 kB / 276.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.004171, allocations: 91.25 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000449/0.00462, allocations: 119.6 kB / 276.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.004834, allocations: 302.5 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.004941, allocations: 44.56 kB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.005067, allocations: 171.6 kB / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.918e-05/0.005166, allocations: 83.72 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.005192, allocations: 20 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.402e-05/0.005216, allocations: 20 kB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.21e-05/0.005248, allocations: 51.81 kB / 277.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.005305, allocations: 91.75 kB / 277.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.005475, allocations: 187.2 kB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.005477, allocations: 0 / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.005478, allocations: 0 / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.986e-06/0.00548, allocations: 0 / 277.6 MB, free: 13.07 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.0004631/0.005944, allocations: 0.5584 MB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.005974, allocations: 12.03 kB / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.748e-05/0.006021, allocations: 40.75 kB / 278.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.006187, allocations: 200.2 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.006204, allocations: 12.88 kB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.006233, allocations: 28.36 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002113/0.006445, allocations: 212 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.006456, allocations: 8.141 kB / 278.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.006471, allocations: 12.38 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.006478, allocations: 7.938 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.125e-05/0.006559, allocations: 75.86 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006953/0.007254, allocations: 1.065 MB / 279.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.007436, allocations: 184.3 kB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.281e-05/0.007478, allocations: 54.8 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.007495, allocations: 4 kB / 280.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.007516, allocations: 45.39 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.007517, allocations: 0 / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002093/0.007727, allocations: 141.4 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.007769, allocations: 136.5 kB / 280.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.007878, allocations: 246.1 kB / 280.6 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.00789, allocations: 29.7 kB / 280.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.007966, allocations: 214.9 kB / 280.8 MB, free: 9.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.008001, allocations: 71.41 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.008051, allocations: 59.3 kB / 281 MB, free: 9.383 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.00816, allocations: 0.5039 MB / 281.5 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.087e-05/0.008191, allocations: 27.97 kB / 281.5 MB, free: 8.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.946e-05/0.00828, allocations: 178.9 kB / 281.7 MB, free: 8.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.008425, allocations: 218.8 kB / 281.9 MB, free: 8.316 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.008427, allocations: 0 / 281.9 MB, free: 8.316 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001823/0.008609, allocations: 205.2 kB / 282.1 MB, free: 8.109 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.00862, allocations: 8.375 kB / 282.1 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.008627, allocations: 11.98 kB / 282.1 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.008637, allocations: 4 kB / 282.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.008776, allocations: 67.91 kB / 282.2 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.008783, allocations: 11.98 kB / 282.2 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.9e-05/0.008852, allocations: 31.72 kB / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.008864, allocations: 12 kB / 282.2 MB, free: 7.965 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 7.108e-05/0.008935, allocations: 168.5 kB / 282.4 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.137e-05/0.008987, allocations: 31.84 kB / 282.4 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.009017, allocations: 17.03 kB / 282.4 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.009019, allocations: 8 kB / 282.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.009021, allocations: 0 / 282.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.009025, allocations: 3.984 kB / 282.5 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.00925, allocations: 169 kB / 282.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.009252, allocations: 0 / 282.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.009391, allocations: 47.97 kB / 282.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.009395, allocations: 4 kB / 282.7 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.009409, allocations: 11.98 kB / 282.7 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.00941, allocations: 0 / 282.7 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.009411, allocations: 0 / 282.7 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.009706, allocations: 0.6573 MB / 283.3 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.737e-05/0.009723, allocations: 11.91 kB / 283.4 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.009742, allocations: 4 kB / 283.4 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.009853, allocations: 8.25 kB / 283.4 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.757e-05/0.00988, allocations: 15.91 kB / 283.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.009889, allocations: 16.69 kB / 283.4 MB, free: 6.738 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003008/0.01019, allocations: 160.4 kB / 283.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01019, allocations: 0 / 283.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002737/0.01046, allocations: 67.84 kB / 283.6 MB, free: 6.516 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 6.8e-05/0.01053, allocations: 110.5 kB / 283.7 MB, free: 6.402 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.01066, allocations: 111.4 kB / 283.8 MB, free: 6.289 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.01066, allocations: 4 kB / 283.8 MB, free: 6.285 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.472e-05/0.0107, allocations: 51.88 kB / 283.9 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.0111, allocations: 64.34 kB / 284 MB, free: 6.176 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008278/0.01192, allocations: 0.6616 MB / 284.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.768e-05/0.01198, allocations: 84.27 kB / 284.7 MB, free: 5.367 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.859e-05/0.01204, allocations: 30.27 kB / 284.7 MB, free: 5.336 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.01214, allocations: 118.2 kB / 284.8 MB, free: 5.219 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01214, allocations: 0 / 284.8 MB, free: 5.219 MB / 266.7 MB Notification: Performance of Templates: time 0.004115/0.01626, allocations: 2.569 MB / 287.4 MB, free: 2.711 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 -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.713264278601855]