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.001032/0.001032, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001074/0.001074, allocations: 163.8 kB / 24.99 MB, free: 9.324 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.9197/0.9197, allocations: 177 MB / 205.2 MB, free: 5.227 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.463e-06/1.463e-06, allocations: 0 / 273 MB, free: 1.605 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.635e-05/1.781e-05, allocations: 3.719 kB / 273 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002431/0.002448, allocations: 2.3 MB / 275.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000897/0.003345, allocations: 0.7399 MB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.401e-05/0.003439, allocations: 4 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.003553, allocations: 39.59 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.003756, allocations: 91.2 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.003978, allocations: 123.6 kB / 276.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002318/0.00421, allocations: 310.5 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.004356, allocations: 40.56 kB / 276.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.004553, allocations: 159.6 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.004673, allocations: 91.75 kB / 276.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.004702, allocations: 23.94 kB / 276.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.367e-05/0.004726, allocations: 20 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.569e-05/0.004761, allocations: 51.77 kB / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.004828, allocations: 87.75 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.005019, allocations: 187.2 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.005021, allocations: 0 / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.82e-07/0.005022, allocations: 4 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.005026, allocations: 0 / 277.2 MB, free: 13.33 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.0005187/0.005545, allocations: 0.5468 MB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.005578, allocations: 11.98 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/0.005647, allocations: 48.75 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.005852, allocations: 200.2 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.005875, allocations: 12.88 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.588e-05/0.005911, allocations: 32.36 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.006174, allocations: 224 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.006188, allocations: 8.141 kB / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.006204, allocations: 8.375 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.006212, allocations: 7.938 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.006338, allocations: 91.73 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000812/0.00715, allocations: 1.096 MB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.007372, allocations: 196.3 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.089e-05/0.007433, allocations: 62.8 kB / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.00745, allocations: 7.984 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.007477, allocations: 45.33 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.313e-06/0.007478, allocations: 0 / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002892/0.007767, allocations: 145.5 kB / 279.9 MB, free: 10.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.007814, allocations: 136.5 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.007951, allocations: 246.7 kB / 280.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.007964, allocations: 29.7 kB / 280.3 MB, free: 9.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.535e-05/0.008039, allocations: 211 kB / 280.6 MB, free: 9.695 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.008077, allocations: 75.41 kB / 280.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.008129, allocations: 63.3 kB / 280.7 MB, free: 9.551 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.008234, allocations: 0.4962 MB / 281.2 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.2e-05/0.008286, allocations: 31.97 kB / 281.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.008392, allocations: 177.8 kB / 281.4 MB, free: 8.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.008569, allocations: 242.7 kB / 281.6 MB, free: 8.469 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.008572, allocations: 4 kB / 281.6 MB, free: 8.465 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002157/0.008788, allocations: 217.3 kB / 281.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.008801, allocations: 8 kB / 281.8 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.008807, allocations: 4 kB / 281.9 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.008821, allocations: 4 kB / 281.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.008977, allocations: 67.91 kB / 281.9 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.008987, allocations: 15.92 kB / 281.9 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.027e-05/0.009058, allocations: 27.78 kB / 282 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.009069, allocations: 8 kB / 282 MB, free: 8.113 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 0.0003293/0.009398, allocations: 180.7 kB / 282.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.009451, allocations: 23.91 kB / 282.2 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.009483, allocations: 21.02 kB / 282.2 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.009488, allocations: 4 kB / 282.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.009492, allocations: 256 / 282.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.009498, allocations: 7.938 kB / 282.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.009731, allocations: 204.4 kB / 282.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.009732, allocations: 0 / 282.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.009877, allocations: 47.97 kB / 282.5 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.009879, allocations: 4 kB / 282.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.009893, allocations: 4 kB / 282.5 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.009895, allocations: 8 kB / 282.5 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.009897, allocations: 3.938 kB / 282.5 MB, free: 7.566 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003069/0.0102, allocations: 0.6581 MB / 283.1 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.724e-05/0.01022, allocations: 11.91 kB / 283.1 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.01024, allocations: 7.984 kB / 283.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.01035, allocations: 8 kB / 283.2 MB, free: 6.859 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.01039, allocations: 11.92 kB / 283.2 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.0104, allocations: 11.98 kB / 283.2 MB, free: 6.836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.831e-05/0.01048, allocations: 179.1 kB / 283.4 MB, free: 6.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01048, allocations: 4 kB / 283.4 MB, free: 6.656 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002758/0.01075, allocations: 63.84 kB / 283.4 MB, free: 6.594 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.228e-05/0.01083, allocations: 99.25 kB / 283.5 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001717/0.011, allocations: 127.4 kB / 283.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.011, allocations: 0.75 kB / 283.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.758e-05/0.01106, allocations: 55.53 kB / 283.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.01147, allocations: 67.83 kB / 283.8 MB, free: 6.234 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008706/0.01234, allocations: 0.662 MB / 284.4 MB, free: 5.527 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.607e-05/0.0124, allocations: 84.31 kB / 284.5 MB, free: 5.426 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.373e-05/0.01246, allocations: 26.28 kB / 284.5 MB, free: 5.398 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.017e-05/0.0125, allocations: 24.48 kB / 284.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.0125, allocations: 0 / 284.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of Templates: time 0.003785/0.01629, allocations: 2.364 MB / 286.9 MB, free: 3.055 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.897454767022282]