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.001095/0.001095, allocations: 80.34 kB / 22.21 MB, free: 2.285 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.001192/0.001192, allocations: 162.6 kB / 25.61 MB, free: 8.574 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.9046/0.9046, allocations: 177 MB / 205.9 MB, free: 4.461 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.443e-06/1.443e-06, allocations: 0 / 274.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.112e-05/2.256e-05, allocations: 2.312 kB / 274.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002501/0.002524, allocations: 2.284 MB / 276.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.003573, allocations: 0.7363 MB / 277.1 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.003694, allocations: 7.938 kB / 277.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.003824, allocations: 35.66 kB / 277.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002472/0.004071, allocations: 103.1 kB / 277.3 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.004367, allocations: 111.7 kB / 277.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000395/0.004762, allocations: 314.4 kB / 277.7 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.004879, allocations: 44.56 kB / 277.7 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.005044, allocations: 163.6 kB / 277.9 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.005158, allocations: 87.75 kB / 278 MB, free: 444 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.005184, allocations: 20 kB / 278 MB, free: 424 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.405e-05/0.005208, allocations: 20 kB / 278 MB, free: 404 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.691e-05/0.005245, allocations: 55.77 kB / 278.1 MB, free: 348 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.005311, allocations: 91.75 kB / 278.2 MB, free: 256 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.005496, allocations: 183.2 kB / 278.3 MB, free: 72 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.005499, allocations: 3.938 kB / 278.3 MB, free: 68 kB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.0055, allocations: 0 / 278.3 MB, free: 68 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.005504, allocations: 0 / 278.3 MB, free: 68 kB / 250.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.0005291/0.006034, allocations: 0.5468 MB / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.006065, allocations: 8.031 kB / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.648e-05/0.006122, allocations: 44.75 kB / 278.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.006321, allocations: 208.1 kB / 279.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.006344, allocations: 12.88 kB / 279.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.006375, allocations: 24.38 kB / 279.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.006605, allocations: 204 kB / 279.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.006619, allocations: 8.141 kB / 279.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.006634, allocations: 8.375 kB / 279.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.006643, allocations: 15.88 kB / 279.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.151e-05/0.006735, allocations: 75.42 kB / 279.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008034/0.007538, allocations: 1.065 MB / 280.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.007731, allocations: 180.4 kB / 280.7 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.205e-05/0.007783, allocations: 58.7 kB / 280.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.007803, allocations: 4 kB / 280.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.007828, allocations: 45.38 kB / 280.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.804e-06/0.00783, allocations: 0 / 280.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002434/0.008073, allocations: 137.4 kB / 281 MB, free: 13.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003202/0.008393, allocations: 140.5 kB / 281.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.008514, allocations: 234.2 kB / 281.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.008527, allocations: 29.7 kB / 281.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.263e-05/0.00862, allocations: 218.9 kB / 281.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.079e-05/0.008661, allocations: 67.42 kB / 281.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.674e-05/0.008717, allocations: 59.33 kB / 281.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.008844, allocations: 0.5078 MB / 282.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.927e-05/0.008884, allocations: 31.89 kB / 282.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.443e-05/0.008978, allocations: 170.9 kB / 282.4 MB, free: 11.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.009135, allocations: 222.8 kB / 282.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.009137, allocations: 3.938 kB / 282.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002028/0.00934, allocations: 209.1 kB / 282.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.009354, allocations: 8 kB / 282.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.009361, allocations: 4 kB / 282.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.789e-06/0.009371, allocations: 4 kB / 282.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.009518, allocations: 67.91 kB / 282.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.009524, allocations: 8.312 kB / 282.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.796e-05/0.009602, allocations: 39.97 kB / 283 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.009616, allocations: 19.98 kB / 283 MB, free: 10.98 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.239e-05/0.009699, allocations: 164.5 kB / 283.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.57e-05/0.009764, allocations: 23.91 kB / 283.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.009797, allocations: 21.03 kB / 283.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.0098, allocations: 3.984 kB / 283.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.009806, allocations: 4 kB / 283.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.009809, allocations: 0 / 283.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.01005, allocations: 165 kB / 283.3 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.01005, allocations: 7.984 kB / 283.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.01019, allocations: 51.92 kB / 283.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.0102, allocations: 7.984 kB / 283.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.01021, allocations: 4 kB / 283.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.01021, allocations: 4 kB / 283.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01021, allocations: 0 / 283.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.01054, allocations: 0.6417 MB / 284.1 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.171e-05/0.01056, allocations: 20.66 kB / 284.1 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.01058, allocations: 4 kB / 284.1 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.0107, allocations: 7.984 kB / 284.1 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.01074, allocations: 15.98 kB / 284.1 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.01074, allocations: 7.938 kB / 284.1 MB, free: 9.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.327e-05/0.01082, allocations: 167.1 kB / 284.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01082, allocations: 0 / 284.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002968/0.01111, allocations: 63.89 kB / 284.3 MB, free: 9.543 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 9.081e-05/0.0112, allocations: 105.1 kB / 284.4 MB, free: 9.434 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001483/0.01135, allocations: 120.1 kB / 284.6 MB, free: 9.312 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01135, allocations: 3.938 kB / 284.6 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.922e-05/0.0114, allocations: 55.58 kB / 284.6 MB, free: 9.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.01181, allocations: 57.08 kB / 284.7 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008477/0.01266, allocations: 0.6661 MB / 285.3 MB, free: 8.488 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.967e-05/0.01272, allocations: 88.25 kB / 285.4 MB, free: 8.383 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.769e-05/0.01279, allocations: 26.28 kB / 285.5 MB, free: 8.355 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.01289, allocations: 118.2 kB / 285.6 MB, free: 8.238 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0129, allocations: 0 / 285.6 MB, free: 8.238 MB / 266.7 MB Notification: Performance of Templates: time 0.004867/0.01776, allocations: 2.627 MB / 288.2 MB, free: 5.676 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.8146643727086484]