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.0009336/0.0009336, allocations: 67.77 kB / 21.69 MB, free: 2.852 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.001094/0.001094, allocations: 165.5 kB / 24.99 MB, free: 8.742 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.9187/0.9187, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.263e-06/1.263e-06, allocations: 0 / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.325e-05/1.451e-05, allocations: 2.312 kB / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002123/0.002137, allocations: 2.296 MB / 275.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.003188, allocations: 0.7399 MB / 276.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.345e-05/0.003282, allocations: 7.938 kB / 276.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.00339, allocations: 31.66 kB / 276.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.003582, allocations: 99.12 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.003797, allocations: 115.7 kB / 276.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002274/0.004025, allocations: 298.5 kB / 276.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.004137, allocations: 44.56 kB / 276.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.004262, allocations: 175.5 kB / 276.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.004365, allocations: 79.78 kB / 276.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.00439, allocations: 20 kB / 276.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.255e-05/0.004412, allocations: 20 kB / 277 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.424e-05/0.004446, allocations: 55.75 kB / 277 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.504e-05/0.004512, allocations: 91.75 kB / 277.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.004689, allocations: 187.2 kB / 277.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.004691, allocations: 0 / 277.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.004692, allocations: 0 / 277.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.004696, allocations: 0 / 277.3 MB, free: 13.6 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.0005146/0.00521, allocations: 0.5507 MB / 277.8 MB, free: 13.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.005243, allocations: 12.03 kB / 277.8 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.003e-05/0.005303, allocations: 44.75 kB / 277.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.0055, allocations: 200.1 kB / 278.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.005522, allocations: 16.88 kB / 278.1 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.005552, allocations: 24.38 kB / 278.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.005811, allocations: 220.1 kB / 278.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.005826, allocations: 16.14 kB / 278.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.005842, allocations: 8.375 kB / 278.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.005851, allocations: 7.938 kB / 278.4 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.005978, allocations: 95.48 kB / 278.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007964/0.006775, allocations: 1.099 MB / 279.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002103/0.006985, allocations: 188.4 kB / 279.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.645e-05/0.007042, allocations: 62.8 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.007055, allocations: 7.938 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.007075, allocations: 41.39 kB / 279.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.007076, allocations: 0 / 279.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002594/0.007336, allocations: 153.7 kB / 280 MB, free: 10.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.007385, allocations: 132.5 kB / 280.1 MB, free: 10.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.007526, allocations: 249.5 kB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.007538, allocations: 29.7 kB / 280.4 MB, free: 10.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/0.00762, allocations: 211 kB / 280.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.007658, allocations: 67.42 kB / 280.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.716e-05/0.007715, allocations: 59.31 kB / 280.7 MB, free: 9.824 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.007827, allocations: 0.5001 MB / 281.2 MB, free: 9.312 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.166e-05/0.007879, allocations: 35.97 kB / 281.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.007988, allocations: 182.9 kB / 281.5 MB, free: 9.031 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.008159, allocations: 238.8 kB / 281.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.008162, allocations: 0 / 281.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004394/0.008601, allocations: 217.4 kB / 281.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.008614, allocations: 4.375 kB / 281.9 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.008623, allocations: 12 kB / 281.9 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.008638, allocations: 8 kB / 281.9 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.008801, allocations: 67.89 kB / 282 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.008811, allocations: 15.86 kB / 282 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.31e-05/0.008884, allocations: 27.78 kB / 282 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.008898, allocations: 16 kB / 282 MB, free: 8.363 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.997e-05/0.008978, allocations: 168.5 kB / 282.2 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.009031, allocations: 23.89 kB / 282.2 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.387e-05/0.009065, allocations: 25.03 kB / 282.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.009067, allocations: 4 kB / 282.3 MB, free: 8.133 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.009071, allocations: 4 kB / 282.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.009077, allocations: 7.922 kB / 282.3 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004139/0.00949, allocations: 192.5 kB / 282.5 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.009492, allocations: 4 kB / 282.5 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.009645, allocations: 55.91 kB / 282.5 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.009647, allocations: 0 / 282.5 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.00966, allocations: 4 kB / 282.5 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.009661, allocations: 0 / 282.5 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.009662, allocations: 0 / 282.5 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.009975, allocations: 0.668 MB / 283.2 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.108e-05/0.009996, allocations: 19.89 kB / 283.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.01002, allocations: 4 kB / 283.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.01013, allocations: 8 kB / 283.2 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.01017, allocations: 15.91 kB / 283.2 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.01018, allocations: 8 kB / 283.2 MB, free: 7.094 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.488e-05/0.01025, allocations: 171.1 kB / 283.4 MB, free: 6.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01025, allocations: 0 / 283.4 MB, free: 6.926 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002719/0.01052, allocations: 67.84 kB / 283.5 MB, free: 6.859 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.659e-05/0.0106, allocations: 102.5 kB / 283.6 MB, free: 6.754 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.01077, allocations: 127.3 kB / 283.7 MB, free: 6.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.01077, allocations: 0 / 283.7 MB, free: 6.625 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.825e-05/0.01083, allocations: 56.16 kB / 283.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.01125, allocations: 65.34 kB / 283.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009065/0.01215, allocations: 0.6611 MB / 284.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.798e-05/0.01221, allocations: 84.31 kB / 284.6 MB, free: 5.695 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.26e-05/0.01227, allocations: 30.27 kB / 284.6 MB, free: 5.664 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.259e-05/0.01231, allocations: 28.5 kB / 284.6 MB, free: 5.637 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01232, allocations: 0 / 284.6 MB, free: 5.637 MB / 266.7 MB Notification: Performance of Templates: time 0.003901/0.01622, allocations: 2.377 MB / 287 MB, free: 3.309 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.831066468032077]