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.001511/0.001511, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 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.0019/0.0019, allocations: 213.3 kB / 24.54 MB, free: 4.016 MB / 14.72 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 1.469/1.469, allocations: 230.3 MB / 258 MB, free: 8.23 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001886/0.001886, allocations: 67.88 kB / 378.7 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2538, allocations: 53.37 MB / 432.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003655/0.2574, allocations: 2.299 MB / 434.4 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.2589, allocations: 0.775 MB / 435.2 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.259, allocations: 7.938 kB / 435.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.2591, allocations: 31.66 kB / 435.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.2594, allocations: 95.27 kB / 435.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000308/0.2597, allocations: 107.8 kB / 435.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003644/0.26, allocations: 302.6 kB / 435.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.2602, allocations: 40.56 kB / 435.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.2603, allocations: 115.6 kB / 435.9 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.2605, allocations: 119.4 kB / 436 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.2605, allocations: 20 kB / 436 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.481e-05/0.2606, allocations: 20 kB / 436 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.406e-05/0.2606, allocations: 55.83 kB / 436.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.2607, allocations: 127.3 kB / 436.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.2611, allocations: 260.5 kB / 436.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2611, allocations: 4 kB / 436.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2611, allocations: 4 kB / 436.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2611, allocations: 0 / 436.5 MB, free: 2.68 MB / 334.1 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.00078/0.2619, allocations: 461.5 kB / 436.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2619, allocations: 8.031 kB / 436.9 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.556e-05/0.2619, allocations: 36.75 kB / 437 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.2623, allocations: 194.8 kB / 437.2 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.2623, allocations: 16.81 kB / 437.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.523e-05/0.2624, allocations: 20.38 kB / 437.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.2628, allocations: 235 kB / 437.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.2628, allocations: 11.95 kB / 437.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.2629, allocations: 8 kB / 437.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2629, allocations: 4 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.2632, allocations: 143.8 kB / 437.6 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.2647, allocations: 0.997 MB / 438.6 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004741/0.2652, allocations: 202.4 kB / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.2653, allocations: 63.48 kB / 438.8 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.2653, allocations: 3.938 kB / 438.8 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.2654, allocations: 38.56 kB / 438.9 MB, free: 64 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.2654, allocations: 4 kB / 438.9 MB, free: 60 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006041/0.266, allocations: 198.1 kB / 439.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.713e-05/0.266, allocations: 132.5 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.2663, allocations: 195.2 kB / 439.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.2663, allocations: 25.7 kB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.2664, allocations: 168.2 kB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.619e-05/0.2665, allocations: 67.42 kB / 439.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.016e-05/0.2665, allocations: 61.66 kB / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.2667, allocations: 338.7 kB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.2669, allocations: 55.95 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.2671, allocations: 157.6 kB / 440.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.2675, allocations: 245.5 kB / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2675, allocations: 0 / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005174/0.268, allocations: 253.5 kB / 440.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.268, allocations: 15.97 kB / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.268, allocations: 4 kB / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.268, allocations: 4 kB / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.2683, allocations: 67.91 kB / 440.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.2683, allocations: 4 kB / 440.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.2685, allocations: 35.77 kB / 440.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.2685, allocations: 8.25 kB / 440.9 MB, free: 13.88 MB / 350.1 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.0001345/0.2686, allocations: 137.8 kB / 441 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-05/0.2687, allocations: 19.84 kB / 441 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.534e-05/0.2688, allocations: 33.02 kB / 441.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2688, allocations: 4 kB / 441.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.2688, allocations: 7.938 kB / 441.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.2688, allocations: 0 / 441.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004607/0.2693, allocations: 244.5 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2693, allocations: 0 / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.2696, allocations: 55.97 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2696, allocations: 3.938 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.2696, allocations: 4 kB / 441.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2696, allocations: 0 / 441.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2696, allocations: 4 kB / 441.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006464/0.2702, allocations: 0.5236 MB / 441.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.2703, allocations: 19.78 kB / 441.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.2703, allocations: 8 kB / 441.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.2705, allocations: 11.98 kB / 441.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.699e-05/0.2706, allocations: 11.98 kB / 442 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.2706, allocations: 7.984 kB / 442 MB, free: 12.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001231/0.2707, allocations: 132.5 kB / 442.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2707, allocations: 3.938 kB / 442.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004495/0.2712, allocations: 67.84 kB / 442.2 MB, free: 12.53 MB / 350.1 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 0.0001212/0.2713, allocations: 114.6 kB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004127/0.2717, allocations: 143.9 kB / 442.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2717, allocations: 0 / 442.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.2719, allocations: 67.89 kB / 442.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006991/0.2726, allocations: 67.55 kB / 442.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.274, allocations: 0.8265 MB / 443.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.2744, allocations: 0.748 MB / 444.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.003e-05/0.2745, allocations: 26.28 kB / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.378e-05/0.2746, allocations: 19.44 kB / 444.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2746, allocations: 0 / 444.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Templates: time 0.006003/0.2806, allocations: 2.423 MB / 446.6 MB, free: 8.059 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.6831916552037]