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.0009783/0.0009783, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001067/0.001067, allocations: 163.4 kB / 24.91 MB, free: 8.715 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.9463/0.9463, allocations: 177 MB / 205.2 MB, free: 5.059 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.313e-06/1.313e-06, allocations: 3.938 kB / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.204e-05, allocations: 9.266 kB / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002647/0.002669, allocations: 2.326 MB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.00384, allocations: 0.7592 MB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.00395, allocations: 7.938 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.004067, allocations: 35.59 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.004299, allocations: 95.19 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.004546, allocations: 103.7 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002621/0.004808, allocations: 310.4 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.004926, allocations: 50.53 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.005082, allocations: 163.6 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.005202, allocations: 95.69 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.005228, allocations: 20 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.349e-05/0.005251, allocations: 20 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.452e-05/0.005286, allocations: 51.77 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.902e-05/0.005345, allocations: 83.77 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.005527, allocations: 187.2 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.005529, allocations: 4 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00553, allocations: 0 / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.005535, allocations: 0 / 277.7 MB, free: 12.73 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.0004609/0.005995, allocations: 436.2 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.006026, allocations: 15.92 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.006073, allocations: 32.91 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.006278, allocations: 181.3 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.0063, allocations: 20.86 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.006333, allocations: 28.31 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002231/0.006556, allocations: 204.7 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.006571, allocations: 8.125 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.006584, allocations: 4.375 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.006593, allocations: 15.94 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.102e-05/0.006674, allocations: 67.81 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007431/0.007417, allocations: 0.7877 MB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.007582, allocations: 146.2 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.043e-05/0.007623, allocations: 43.42 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.007636, allocations: 4 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.00766, allocations: 42.5 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.007661, allocations: 0 / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002107/0.007872, allocations: 117.5 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.00792, allocations: 132.5 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.00803, allocations: 190.9 kB / 280.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.008043, allocations: 25.7 kB / 280.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.069e-05/0.008113, allocations: 152.2 kB / 280.3 MB, free: 9.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.605e-05/0.008149, allocations: 71.41 kB / 280.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/0.008203, allocations: 53.64 kB / 280.4 MB, free: 9.754 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.33e-05/0.008287, allocations: 342.7 kB / 280.8 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.448e-05/0.008321, allocations: 23.98 kB / 280.8 MB, free: 9.387 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.801e-05/0.008399, allocations: 133.6 kB / 280.9 MB, free: 9.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.008532, allocations: 181.5 kB / 281.1 MB, free: 8.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.008534, allocations: 0 / 281.1 MB, free: 8.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001629/0.008697, allocations: 169.5 kB / 281.3 MB, free: 8.809 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.008711, allocations: 12.06 kB / 281.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.008717, allocations: 4 kB / 281.3 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.008733, allocations: 7.938 kB / 281.3 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.008943, allocations: 83.17 kB / 281.4 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.00895, allocations: 11.88 kB / 281.4 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.046e-05/0.00903, allocations: 27.81 kB / 281.4 MB, free: 8.668 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.009044, allocations: 12 kB / 281.4 MB, free: 8.656 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.185e-05/0.009115, allocations: 121.8 kB / 281.5 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.009177, allocations: 19.98 kB / 281.6 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.009207, allocations: 25.02 kB / 281.6 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.00921, allocations: 0 / 281.6 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.009216, allocations: 7.938 kB / 281.6 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.00922, allocations: 0 / 281.6 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002274/0.009447, allocations: 133.7 kB / 281.7 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.00945, allocations: 4 kB / 281.7 MB, free: 8.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.009625, allocations: 63.89 kB / 281.8 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.009627, allocations: 4 kB / 281.8 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.009638, allocations: 0 / 281.8 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.009641, allocations: 4 kB / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.009644, allocations: 7.938 kB / 281.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.009896, allocations: 452.2 kB / 282.3 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.23e-05/0.009919, allocations: 16.91 kB / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.009938, allocations: 7.984 kB / 282.3 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.01006, allocations: 11.94 kB / 282.3 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.0101, allocations: 15.92 kB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.0101, allocations: 7.984 kB / 282.3 MB, free: 7.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.278e-05/0.01015, allocations: 52.8 kB / 282.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01015, allocations: 0 / 282.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002662/0.01041, allocations: 63.89 kB / 282.4 MB, free: 7.613 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 9.143e-05/0.0105, allocations: 80.42 kB / 282.5 MB, free: 7.527 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001472/0.01065, allocations: 100.6 kB / 282.6 MB, free: 7.426 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.01066, allocations: 4 kB / 282.6 MB, free: 7.422 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.983e-05/0.01071, allocations: 57.42 kB / 282.7 MB, free: 7.363 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.01109, allocations: 59.97 kB / 282.7 MB, free: 7.305 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007698/0.01186, allocations: 0.5027 MB / 283.2 MB, free: 6.758 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.373e-05/0.01193, allocations: 84.27 kB / 283.3 MB, free: 6.656 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.737e-05/0.012, allocations: 34.58 kB / 283.3 MB, free: 6.625 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.01212, allocations: 103.3 kB / 283.4 MB, free: 6.523 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01212, allocations: 0 / 283.4 MB, free: 6.523 MB / 266.7 MB Notification: Performance of Templates: time 0.004695/0.01682, allocations: 2.754 MB / 286.2 MB, free: 3.84 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 -s gbode -gbm=radauIIA3 -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.6880729501135647]