Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 81.91 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002199/0.002199, allocations: 161 kB / 24.82 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.989/0.989, allocations: 177 MB / 205.1 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.451e-05/1.569e-05, allocations: 5.266 kB / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002822/0.002837, allocations: 2.28 MB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.00398, allocations: 0.736 MB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.004094, allocations: 11.94 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.00422, allocations: 27.66 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.00447, allocations: 107.1 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.004737, allocations: 107.7 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.00501, allocations: 298.5 kB / 276.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.005141, allocations: 44.56 kB / 276.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.005316, allocations: 171.5 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.005447, allocations: 87.7 kB / 277.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.186e-05/0.005479, allocations: 20 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.364e-05/0.005512, allocations: 20 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.209e-05/0.005554, allocations: 59.75 kB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.352e-05/0.005628, allocations: 87.77 kB / 277.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.005835, allocations: 187.2 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.005837, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005838, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.005841, allocations: 0 / 277.5 MB, free: 13.01 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.0006855/0.006527, allocations: 0.5468 MB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.006565, allocations: 15.98 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.138e-05/0.006627, allocations: 44.75 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.006839, allocations: 208.1 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.006864, allocations: 16.88 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.582e-05/0.0069, allocations: 24.38 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.007169, allocations: 208 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.007184, allocations: 4.141 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.007202, allocations: 12.38 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.007214, allocations: 11.92 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.007323, allocations: 71.86 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008986/0.008222, allocations: 1.073 MB / 279.8 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.008442, allocations: 184.3 kB / 279.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.106e-05/0.008493, allocations: 50.81 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.008514, allocations: 15.92 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.008537, allocations: 37.39 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.252e-06/0.008538, allocations: 0 / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002758/0.008814, allocations: 133.4 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.008859, allocations: 136.5 kB / 280.3 MB, free: 9.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.009001, allocations: 250.1 kB / 280.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.009016, allocations: 33.7 kB / 280.6 MB, free: 9.672 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.149e-05/0.009107, allocations: 207 kB / 280.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.009156, allocations: 75.39 kB / 280.9 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.009222, allocations: 59.28 kB / 280.9 MB, free: 9.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000381/0.009603, allocations: 0.5039 MB / 281.4 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.356e-05/0.009647, allocations: 23.97 kB / 281.4 MB, free: 8.781 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.009763, allocations: 178.9 kB / 281.6 MB, free: 8.539 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.009947, allocations: 222.8 kB / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.00995, allocations: 0 / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002522/0.0102, allocations: 205.2 kB / 282 MB, free: 8.047 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.01022, allocations: 11.12 kB / 282 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.01022, allocations: 4 kB / 282.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.01024, allocations: 4 kB / 282.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.01042, allocations: 67.91 kB / 282.1 MB, free: 7.965 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.01043, allocations: 12.31 kB / 282.1 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.01053, allocations: 39.7 kB / 282.2 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.01054, allocations: 8 kB / 282.2 MB, free: 7.906 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.764e-05/0.01063, allocations: 168.5 kB / 282.3 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.775e-05/0.01071, allocations: 23.91 kB / 282.4 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.071e-05/0.01075, allocations: 25.02 kB / 282.4 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.01075, allocations: 4.25 kB / 282.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.01076, allocations: 0 / 282.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.01076, allocations: 7.938 kB / 282.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003148/0.01108, allocations: 169.7 kB / 282.6 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01108, allocations: 0 / 282.6 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.01127, allocations: 55.91 kB / 282.6 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.01127, allocations: 4 kB / 282.6 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.01128, allocations: 8 kB / 282.6 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.01129, allocations: 0 / 282.6 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.01129, allocations: 0 / 282.6 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.01164, allocations: 0.6573 MB / 283.3 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.25e-05/0.01166, allocations: 11.91 kB / 283.3 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.01169, allocations: 11.98 kB / 283.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.01186, allocations: 4 kB / 283.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.01189, allocations: 15.98 kB / 283.3 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.0119, allocations: 11.92 kB / 283.4 MB, free: 6.676 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.58e-05/0.01198, allocations: 167.1 kB / 283.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01198, allocations: 0 / 283.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004109/0.01239, allocations: 63.84 kB / 283.6 MB, free: 6.449 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 7.749e-05/0.01247, allocations: 102.7 kB / 283.7 MB, free: 6.344 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00016/0.01263, allocations: 112.1 kB / 283.8 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01263, allocations: 0 / 283.8 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.459e-05/0.0127, allocations: 58.53 kB / 283.8 MB, free: 6.172 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005752/0.01327, allocations: 63.83 kB / 283.9 MB, free: 6.113 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009933/0.01426, allocations: 0.6659 MB / 284.6 MB, free: 5.402 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.045e-05/0.01433, allocations: 84.25 kB / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.57e-05/0.01441, allocations: 26.3 kB / 284.7 MB, free: 5.273 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.01453, allocations: 114.2 kB / 284.8 MB, free: 5.16 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01453, allocations: 4 kB / 284.8 MB, free: 5.156 MB / 266.7 MB Notification: Performance of Templates: time 0.004448/0.01897, allocations: 2.55 MB / 287.3 MB, free: 2.652 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.6836773338727653]