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.00139/0.00139, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002069/0.003459, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001355/0.001355, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001582/0.002936, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9359/0.9359, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08109/1.017, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.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.343e-06/1.343e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.174e-05/1.309e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002227/0.002241, allocations: 2.334 MB / 247.3 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.003298, allocations: 0.763 MB / 248.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.003401, allocations: 7.938 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.041e-05/0.003471, allocations: 39.64 kB / 248.1 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.003643, allocations: 95.2 kB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.003881, allocations: 107.7 kB / 248.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.004118, allocations: 306.5 kB / 248.6 MB, free: 9.988 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.004226, allocations: 57.73 kB / 248.7 MB, free: 9.938 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.004391, allocations: 183.5 kB / 248.9 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.004498, allocations: 87.7 kB / 249 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.004522, allocations: 20 kB / 249 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.19e-05/0.004544, allocations: 20 kB / 249 MB, free: 9.633 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.709e-05/0.004571, allocations: 35.88 kB / 249 MB, free: 9.598 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.731e-05/0.004629, allocations: 79.88 kB / 249.1 MB, free: 9.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.0048, allocations: 167.4 kB / 249.3 MB, free: 9.355 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.00481, allocations: 0 / 249.3 MB, free: 9.355 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.004811, allocations: 0 / 249.3 MB, free: 9.355 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.004823, allocations: 3.938 kB / 249.3 MB, free: 9.352 MB / 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.0004993/0.005322, allocations: 491.8 kB / 249.8 MB, free: 8.848 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.767e-05/0.00535, allocations: 8.031 kB / 249.8 MB, free: 8.84 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.458e-05/0.005395, allocations: 36.91 kB / 249.8 MB, free: 8.805 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.005569, allocations: 181.4 kB / 250 MB, free: 8.602 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.005592, allocations: 24.81 kB / 250 MB, free: 8.578 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.005622, allocations: 24.33 kB / 250 MB, free: 8.555 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.005825, allocations: 200.7 kB / 250.2 MB, free: 8.336 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.005836, allocations: 192 / 250.2 MB, free: 8.336 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.005848, allocations: 8.375 kB / 250.2 MB, free: 8.328 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.005854, allocations: 7.938 kB / 250.2 MB, free: 8.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.759e-05/0.005932, allocations: 67.77 kB / 250.3 MB, free: 8.258 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000902/0.006834, allocations: 0.7955 MB / 251.1 MB, free: 7.406 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.007001, allocations: 146.1 kB / 251.3 MB, free: 7.227 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.658e-05/0.007038, allocations: 43.42 kB / 251.3 MB, free: 7.172 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.297e-05/0.007051, allocations: 4 kB / 251.3 MB, free: 7.168 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.007071, allocations: 42.55 kB / 251.3 MB, free: 7.117 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.007073, allocations: 3.938 kB / 251.3 MB, free: 7.113 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001813/0.007254, allocations: 109.6 kB / 251.5 MB, free: 7 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.007298, allocations: 136.5 kB / 251.6 MB, free: 6.836 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.798e-05/0.007396, allocations: 186.5 kB / 251.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.007409, allocations: 29.7 kB / 251.8 MB, free: 6.605 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.154e-05/0.00747, allocations: 160.2 kB / 252 MB, free: 6.445 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.007512, allocations: 63.42 kB / 252 MB, free: 6.383 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.007561, allocations: 61.61 kB / 252.1 MB, free: 6.316 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.621e-05/0.007637, allocations: 334.7 kB / 252.4 MB, free: 5.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.032e-05/0.007667, allocations: 19.98 kB / 252.4 MB, free: 5.961 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.485e-05/0.007742, allocations: 125.7 kB / 252.5 MB, free: 5.789 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.007869, allocations: 193.4 kB / 252.7 MB, free: 5.551 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.007871, allocations: 0 / 252.7 MB, free: 5.551 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001551/0.008026, allocations: 169.5 kB / 252.9 MB, free: 5.379 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.008039, allocations: 4 kB / 252.9 MB, free: 5.375 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.118e-06/0.008048, allocations: 11.98 kB / 252.9 MB, free: 5.363 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.008059, allocations: 8 kB / 252.9 MB, free: 5.355 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.008277, allocations: 84.27 kB / 253 MB, free: 5.273 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.008283, allocations: 15.92 kB / 253 MB, free: 5.258 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.768e-05/0.008351, allocations: 23.83 kB / 253 MB, free: 5.234 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.008362, allocations: 12 kB / 253.1 MB, free: 5.223 MB / 250.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 6.381e-05/0.008426, allocations: 125.8 kB / 253.2 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.703e-05/0.008473, allocations: 15.92 kB / 253.2 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.008504, allocations: 29.02 kB / 253.2 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.008506, allocations: 0 / 253.2 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.008511, allocations: 7.938 kB / 253.2 MB, free: 5.039 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.008515, allocations: 0 / 253.2 MB, free: 5.039 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.008728, allocations: 125.7 kB / 253.4 MB, free: 4.898 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.00873, allocations: 4 kB / 253.4 MB, free: 4.895 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.008897, allocations: 67.89 kB / 253.4 MB, free: 4.828 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.811e-05/0.008915, allocations: 19.89 kB / 253.4 MB, free: 4.809 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.008917, allocations: 0 / 253.4 MB, free: 4.809 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.008932, allocations: 11.98 kB / 253.5 MB, free: 4.797 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.008934, allocations: 3.938 kB / 253.5 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.008937, allocations: 7.938 kB / 253.5 MB, free: 4.785 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.009168, allocations: 453.2 kB / 253.9 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.009185, allocations: 0 / 253.9 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.009293, allocations: 15.94 kB / 253.9 MB, free: 4.312 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.073e-05/0.009324, allocations: 15.97 kB / 253.9 MB, free: 4.297 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.009329, allocations: 0 / 253.9 MB, free: 4.297 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.845e-05/0.009367, allocations: 57.8 kB / 254 MB, free: 4.238 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.009367, allocations: 0 / 254 MB, free: 4.238 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002424/0.00961, allocations: 67.83 kB / 254.1 MB, free: 4.172 MB / 250.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.025e-05/0.00968, allocations: 76.42 kB / 254.1 MB, free: 4.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.009799, allocations: 112.9 kB / 254.2 MB, free: 3.977 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.009805, allocations: 4 kB / 254.2 MB, free: 3.973 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.008e-05/0.009845, allocations: 44.78 kB / 254.3 MB, free: 3.926 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.0102, allocations: 72.39 kB / 254.4 MB, free: 3.855 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002568/0.01276, allocations: 0.5043 MB / 254.9 MB, free: 3.312 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.911e-05/0.01282, allocations: 88.31 kB / 255 MB, free: 3.207 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.669e-05/0.01289, allocations: 26.28 kB / 255 MB, free: 3.184 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.912e-05/0.01299, allocations: 95.34 kB / 255.1 MB, free: 3.09 MB / 250.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01299, allocations: 3.938 kB / 255.1 MB, free: 3.086 MB / 250.7 MB Notification: Performance of Templates: time 0.004972/0.01796, allocations: 2.864 MB / 257.9 MB, free: 300 kB / 250.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 -ignoreHideResult -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.5880028288811445]