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.0007485/0.0007485, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001156/0.001904, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007426/0.0007426, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009534/0.001696, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9195/0.9195, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08036/0.9999, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.062e-06/1.062e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.106e-06/9.168e-06, allocations: 5.688 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.001993/0.002002, allocations: 2.338 MB / 247 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007844/0.002786, allocations: 0.7668 MB / 247.8 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.297e-05/0.002869, allocations: 11.94 kB / 247.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.714e-05/0.002926, allocations: 31.66 kB / 247.8 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.003065, allocations: 95.19 kB / 247.9 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.003239, allocations: 107.7 kB / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.003443, allocations: 306.5 kB / 248.3 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.257e-05/0.003536, allocations: 57.2 kB / 248.4 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.003693, allocations: 183.5 kB / 248.6 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.003797, allocations: 87.7 kB / 248.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.00382, allocations: 24 kB / 248.7 MB, free: 10.22 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.631e-05/0.003846, allocations: 20 kB / 248.7 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.986e-05/0.003876, allocations: 35.88 kB / 248.7 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.25e-05/0.003929, allocations: 71.88 kB / 248.8 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.00409, allocations: 167.3 kB / 249 MB, free: 9.934 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.004099, allocations: 0 / 249 MB, free: 9.934 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.004099, allocations: 3.938 kB / 249 MB, free: 9.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.004108, allocations: 0 / 249 MB, free: 9.93 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.0004521/0.00456, allocations: 487.8 kB / 249.5 MB, free: 9.426 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.263e-05/0.004582, allocations: 12.03 kB / 249.5 MB, free: 9.414 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.976e-05/0.004622, allocations: 36.91 kB / 249.5 MB, free: 9.379 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.004778, allocations: 177.4 kB / 249.7 MB, free: 9.18 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.004799, allocations: 20.8 kB / 249.7 MB, free: 9.16 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.004829, allocations: 28.31 kB / 249.7 MB, free: 9.133 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.005009, allocations: 200.7 kB / 249.9 MB, free: 8.918 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.005019, allocations: 192 / 249.9 MB, free: 8.918 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.005031, allocations: 12.38 kB / 249.9 MB, free: 8.906 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.005037, allocations: 11.88 kB / 249.9 MB, free: 8.895 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.177e-05/0.005109, allocations: 67.77 kB / 250 MB, free: 8.832 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005689/0.005678, allocations: 0.8035 MB / 250.8 MB, free: 7.977 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.005825, allocations: 146.2 kB / 251 MB, free: 7.797 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.127e-05/0.005857, allocations: 35.44 kB / 251 MB, free: 7.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.005868, allocations: 7.984 kB / 251 MB, free: 7.742 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.005885, allocations: 38.5 kB / 251 MB, free: 7.695 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.713e-06/0.005887, allocations: 4 kB / 251 MB, free: 7.691 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001601/0.006047, allocations: 113.5 kB / 251.2 MB, free: 7.574 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.00609, allocations: 140.5 kB / 251.3 MB, free: 7.406 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.514e-05/0.006175, allocations: 182.9 kB / 251.5 MB, free: 7.215 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.006186, allocations: 33.7 kB / 251.5 MB, free: 7.176 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/0.006237, allocations: 156.2 kB / 251.7 MB, free: 7.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/0.00627, allocations: 67.42 kB / 251.7 MB, free: 6.953 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/0.006312, allocations: 53.62 kB / 251.8 MB, free: 6.895 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.928e-05/0.006381, allocations: 338.7 kB / 252.1 MB, free: 6.555 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.512e-05/0.006407, allocations: 19.98 kB / 252.1 MB, free: 6.535 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.656e-05/0.006473, allocations: 121.7 kB / 252.2 MB, free: 6.367 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.006596, allocations: 193.4 kB / 252.4 MB, free: 6.129 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.006598, allocations: 0 / 252.4 MB, free: 6.129 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001495/0.006748, allocations: 173.2 kB / 252.6 MB, free: 5.953 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.006758, allocations: 8 kB / 252.6 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.006763, allocations: 4 kB / 252.6 MB, free: 5.941 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.006772, allocations: 4.375 kB / 252.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.006958, allocations: 90.23 kB / 252.7 MB, free: 5.852 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.006964, allocations: 11.92 kB / 252.7 MB, free: 5.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.449e-05/0.007029, allocations: 23.83 kB / 252.7 MB, free: 5.816 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.00704, allocations: 12 kB / 252.8 MB, free: 5.805 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 5.82e-05/0.007098, allocations: 125.8 kB / 252.9 MB, free: 5.672 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.007144, allocations: 23.92 kB / 252.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.677e-05/0.00717, allocations: 21.02 kB / 252.9 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.007173, allocations: 7.938 kB / 252.9 MB, free: 5.617 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.007175, allocations: 7.938 kB / 252.9 MB, free: 5.609 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.007178, allocations: 0 / 252.9 MB, free: 5.609 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.00737, allocations: 133.7 kB / 253.1 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.007372, allocations: 0 / 253.1 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.007514, allocations: 59.95 kB / 253.1 MB, free: 5.402 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.441e-05/0.007529, allocations: 11.91 kB / 253.1 MB, free: 5.391 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.007531, allocations: 4 kB / 253.1 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.007542, allocations: 7.984 kB / 253.1 MB, free: 5.379 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.007546, allocations: 7.938 kB / 253.2 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.007547, allocations: 3.938 kB / 253.2 MB, free: 5.367 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.007822, allocations: 457.9 kB / 253.6 MB, free: 4.902 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.007844, allocations: 8 kB / 253.6 MB, free: 4.895 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.007974, allocations: 7.938 kB / 253.6 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.915e-05/0.008003, allocations: 16.22 kB / 253.6 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.008009, allocations: 4 kB / 253.6 MB, free: 4.867 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.827e-05/0.008047, allocations: 54.05 kB / 253.7 MB, free: 4.812 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.008047, allocations: 3.938 kB / 253.7 MB, free: 4.809 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002358/0.008283, allocations: 59.89 kB / 253.8 MB, free: 4.75 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 6.581e-05/0.008349, allocations: 88.42 kB / 253.8 MB, free: 4.656 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001185/0.008467, allocations: 112.5 kB / 254 MB, free: 4.547 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.008472, allocations: 0 / 254 MB, free: 4.547 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.165e-05/0.008523, allocations: 60.75 kB / 254 MB, free: 4.484 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.008991, allocations: 0.5614 MB / 254.6 MB, free: 3.812 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.01154, allocations: 0.5006 MB / 255.1 MB, free: 3.273 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.296e-05/0.0116, allocations: 88.31 kB / 255.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.08e-05/0.01166, allocations: 30.83 kB / 255.2 MB, free: 3.141 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.657e-05/0.01175, allocations: 99.33 kB / 255.3 MB, free: 3.043 MB / 250.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01175, allocations: 0 / 255.3 MB, free: 3.043 MB / 250.7 MB Notification: Performance of Templates: time 0.004241/0.016, allocations: 2.766 MB / 258.1 MB, free: 356 kB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.348474867641926]