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.001335/0.001335, allocations: 88.73 kB / 21.5 MB, free: 2.98 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.0009631/0.0009631, allocations: 166.2 kB / 24.91 MB, free: 8.758 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.8811/0.8811, allocations: 177 MB / 205.2 MB, free: 5.43 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.212e-06/1.212e-06, allocations: 0 / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.804e-05/1.926e-05, allocations: 6.312 kB / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002383/0.002402, allocations: 2.282 MB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000968/0.00337, allocations: 0.7592 MB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.296e-05/0.003463, allocations: 8 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.003585, allocations: 39.58 kB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.003801, allocations: 91.2 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.004026, allocations: 111.7 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000225/0.004251, allocations: 302.5 kB / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.004357, allocations: 46.53 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.004491, allocations: 163.6 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.004606, allocations: 99.69 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/0.004631, allocations: 20 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.368e-05/0.004654, allocations: 23.94 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.421e-05/0.004689, allocations: 47.77 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.368e-05/0.004752, allocations: 87.77 kB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.004922, allocations: 183.3 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.004924, allocations: 0 / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.004926, allocations: 4 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.00493, allocations: 0 / 277.6 MB, free: 12.95 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.0004203/0.00535, allocations: 436.2 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.005381, allocations: 15.98 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.347e-05/0.005424, allocations: 36.91 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.005599, allocations: 181.3 kB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.005619, allocations: 16.88 kB / 278.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/0.00565, allocations: 28.33 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.005847, allocations: 200.7 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.005861, allocations: 8.172 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.005874, allocations: 8.375 kB / 278.5 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.005882, allocations: 23.86 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.63e-05/0.005959, allocations: 55.91 kB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006925/0.006651, allocations: 0.7917 MB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.006811, allocations: 142.2 kB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/0.006852, allocations: 39.36 kB / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.006865, allocations: 8 kB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.006887, allocations: 38.56 kB / 279.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.434e-06/0.006889, allocations: 7.984 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001861/0.007075, allocations: 113.5 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.00712, allocations: 132.5 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.766e-05/0.007218, allocations: 190.9 kB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.007229, allocations: 29.7 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.599e-05/0.007285, allocations: 156.2 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.007321, allocations: 71.41 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-05/0.007367, allocations: 49.64 kB / 280.3 MB, free: 9.965 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.007445, allocations: 338.7 kB / 280.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.831e-05/0.007473, allocations: 23.92 kB / 280.7 MB, free: 9.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.021e-05/0.007553, allocations: 133.7 kB / 280.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.007678, allocations: 181.5 kB / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.00768, allocations: 3.938 kB / 281 MB, free: 9.191 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001528/0.007833, allocations: 169.4 kB / 281.2 MB, free: 9.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.007846, allocations: 8 kB / 281.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.007853, allocations: 4.375 kB / 281.2 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.007865, allocations: 8 kB / 281.2 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.008004, allocations: 63.91 kB / 281.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.00801, allocations: 11.92 kB / 281.3 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.618e-05/0.008076, allocations: 23.83 kB / 281.3 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.00809, allocations: 15.94 kB / 281.3 MB, free: 8.887 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.531e-05/0.008165, allocations: 125.8 kB / 281.4 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.615e-05/0.008211, allocations: 15.98 kB / 281.5 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.996e-05/0.008241, allocations: 25.02 kB / 281.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.008243, allocations: 3.938 kB / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.008246, allocations: 8 kB / 281.5 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.008248, allocations: 0 / 281.5 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.008481, allocations: 133.6 kB / 281.6 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.008483, allocations: 4 kB / 281.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.00862, allocations: 55.91 kB / 281.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.008622, allocations: 0 / 281.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.008633, allocations: 8 kB / 281.7 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.008635, allocations: 0 / 281.7 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.008636, allocations: 0 / 281.7 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.008883, allocations: 457.1 kB / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.008902, allocations: 19.91 kB / 282.2 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.00892, allocations: 8 kB / 282.2 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.009027, allocations: 8 kB / 282.2 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.009055, allocations: 12.72 kB / 282.2 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.00906, allocations: 4 kB / 282.2 MB, free: 7.969 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.903e-05/0.009099, allocations: 56.72 kB / 282.2 MB, free: 7.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009099, allocations: 0 / 282.2 MB, free: 7.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002464/0.009346, allocations: 59.89 kB / 282.3 MB, free: 7.852 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 8.44e-05/0.00943, allocations: 84.36 kB / 282.4 MB, free: 7.762 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001226/0.009553, allocations: 113.2 kB / 282.5 MB, free: 7.648 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.009557, allocations: 0 / 282.5 MB, free: 7.648 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.09e-05/0.009597, allocations: 45.05 kB / 282.5 MB, free: 7.602 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.009954, allocations: 72.34 kB / 282.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007501/0.0107, allocations: 0.5028 MB / 283.1 MB, free: 6.988 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.418e-05/0.01076, allocations: 84.31 kB / 283.2 MB, free: 6.887 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.642e-05/0.01081, allocations: 26.28 kB / 283.2 MB, free: 6.863 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.992e-05/0.01091, allocations: 95.28 kB / 283.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01092, allocations: 0 / 283.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of Templates: time 0.004396/0.01531, allocations: 2.563 MB / 285.9 MB, free: 4.262 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.8133033798076212]