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.001499/0.001499, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.001623/0.001623, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 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 1.498/1.498, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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 1.483e-06/1.483e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.733e-05/2.881e-05, allocations: 6.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003629/0.003658, allocations: 2.157 MB / 274.4 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.005613, allocations: 0.7166 MB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.005773, allocations: 7.938 kB / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.005925, allocations: 31.66 kB / 275.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002887/0.006214, allocations: 95.25 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.006548, allocations: 111.6 kB / 275.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003853/0.006933, allocations: 306.4 kB / 275.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.007064, allocations: 44.58 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/0.007304, allocations: 171.5 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.007462, allocations: 83.77 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.0075, allocations: 20 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.404e-05/0.007544, allocations: 20 kB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.837e-05/0.007603, allocations: 55.75 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.007715, allocations: 87.77 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.008048, allocations: 255.2 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.008051, allocations: 4 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.008052, allocations: 0 / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.319e-06/0.008057, allocations: 0 / 276.3 MB, free: 13.64 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.0008552/0.008912, allocations: 477.5 kB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.008949, allocations: 11.98 kB / 276.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.009053, allocations: 48.75 kB / 276.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.009421, allocations: 193.3 kB / 277 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.009445, allocations: 12.88 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.009497, allocations: 24.31 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004723/0.00997, allocations: 240.1 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.009991, allocations: 8.141 kB / 277.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.01002, allocations: 8.375 kB / 277.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.01004, allocations: 11.94 kB / 277.3 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003649/0.01041, allocations: 139.7 kB / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.0119, allocations: 0.932 MB / 278.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005202/0.01242, allocations: 210.4 kB / 278.6 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.01258, allocations: 59.45 kB / 278.7 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.0126, allocations: 4 kB / 278.7 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.01264, allocations: 42.5 kB / 278.7 MB, free: 11.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.233e-06/0.01264, allocations: 0 / 278.7 MB, free: 11.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006279/0.01327, allocations: 201.4 kB / 278.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.66e-05/0.01337, allocations: 132.5 kB / 279 MB, free: 10.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/0.0136, allocations: 198.4 kB / 279.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.01362, allocations: 29.7 kB / 279.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.01376, allocations: 168.2 kB / 279.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.914e-05/0.01383, allocations: 71.39 kB / 279.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.609e-05/0.01392, allocations: 49.7 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.0141, allocations: 330.8 kB / 279.9 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.01426, allocations: 59.97 kB / 279.9 MB, free: 9.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.01451, allocations: 157.6 kB / 280.1 MB, free: 9.566 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004227/0.01493, allocations: 225.5 kB / 280.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.01494, allocations: 4 kB / 280.3 MB, free: 9.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005487/0.01549, allocations: 281.2 kB / 280.6 MB, free: 9.012 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.0155, allocations: 4 kB / 280.6 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.01551, allocations: 7.938 kB / 280.6 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.01553, allocations: 4.75 kB / 280.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.01581, allocations: 68.28 kB / 280.7 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.01583, allocations: 15.88 kB / 280.7 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.01599, allocations: 23.88 kB / 280.7 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.01602, allocations: 16 kB / 280.7 MB, free: 8.875 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 0.0001443/0.01616, allocations: 141.7 kB / 280.9 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.91e-05/0.01626, allocations: 23.86 kB / 280.9 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.554e-05/0.01632, allocations: 25.02 kB / 280.9 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.01632, allocations: 4 kB / 280.9 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.01633, allocations: 0 / 280.9 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.01634, allocations: 7.922 kB / 280.9 MB, free: 8.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004175/0.01675, allocations: 189.2 kB / 281.1 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.01676, allocations: 7.984 kB / 281.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.01707, allocations: 51.91 kB / 281.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.01707, allocations: 0 / 281.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.01709, allocations: 8 kB / 281.2 MB, free: 8.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.01709, allocations: 0 / 281.2 MB, free: 8.387 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.0171, allocations: 4 kB / 281.2 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007133/0.01781, allocations: 0.5245 MB / 281.7 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.01785, allocations: 23.8 kB / 281.7 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.01788, allocations: 0 / 281.7 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.01811, allocations: 15.98 kB / 281.7 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.01817, allocations: 23.86 kB / 281.8 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.01818, allocations: 4 kB / 281.8 MB, free: 7.773 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003446/0.01853, allocations: 140.2 kB / 281.9 MB, free: 7.637 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01853, allocations: 0 / 281.9 MB, free: 7.637 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004796/0.01901, allocations: 63.89 kB / 282 MB, free: 7.574 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 0.0001192/0.01913, allocations: 99.23 kB / 282.1 MB, free: 7.469 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003871/0.01951, allocations: 148.2 kB / 282.2 MB, free: 7.324 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01952, allocations: 0 / 282.2 MB, free: 7.324 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.01968, allocations: 63.84 kB / 282.3 MB, free: 7.262 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007041/0.02038, allocations: 67.61 kB / 282.3 MB, free: 7.199 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.02169, allocations: 0.6834 MB / 283 MB, free: 6.477 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001742/0.02186, allocations: 138.2 kB / 283.2 MB, free: 6.324 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.988e-05/0.02195, allocations: 22.28 kB / 283.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.392e-05/0.02202, allocations: 24.5 kB / 283.2 MB, free: 6.277 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.02202, allocations: 0 / 283.2 MB, free: 6.277 MB / 266.7 MB Notification: Performance of Templates: time 0.0063/0.02832, allocations: 2.372 MB / 285.6 MB, free: 3.945 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=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.449230627040379]