Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.002522/0.002522, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 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.001922/0.001922, allocations: 168.3 kB / 25.03 MB, free: 8.41 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 158.6 MB / 186.8 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 250.4 MB, free: 7.855 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.08e-05/3.247e-05, allocations: 2.312 kB / 250.4 MB, free: 7.852 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004382/0.004415, allocations: 2.328 MB / 252.7 MB, free: 5.504 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.00641, allocations: 0.941 MB / 253.6 MB, free: 4.547 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.006551, allocations: 4 kB / 253.6 MB, free: 4.543 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.006801, allocations: 47.58 kB / 253.7 MB, free: 4.496 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005229/0.007324, allocations: 151.1 kB / 253.8 MB, free: 4.348 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.007687, allocations: 171.6 kB / 254 MB, free: 4.18 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005207/0.008208, allocations: 434.5 kB / 254.4 MB, free: 3.754 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.00835, allocations: 44.5 kB / 254.5 MB, free: 3.715 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003471/0.008697, allocations: 243.6 kB / 254.7 MB, free: 3.477 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.009039, allocations: 203.5 kB / 254.9 MB, free: 3.277 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.298e-05/0.009122, allocations: 32 kB / 254.9 MB, free: 3.246 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.009366, allocations: 119.8 kB / 255 MB, free: 3.129 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.009523, allocations: 99.69 kB / 255.1 MB, free: 3.031 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.009711, allocations: 115.7 kB / 255.2 MB, free: 2.918 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007299/0.01044, allocations: 490.6 kB / 255.7 MB, free: 2.438 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.01044, allocations: 0 / 255.7 MB, free: 2.438 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.01045, allocations: 3.938 kB / 255.7 MB, free: 2.434 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.01045, allocations: 0 / 255.7 MB, free: 2.434 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001347/0.0118, allocations: 0.6632 MB / 256.4 MB, free: 1.734 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.01184, allocations: 15.98 kB / 256.4 MB, free: 1.719 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003931/0.01224, allocations: 76.69 kB / 256.5 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005082/0.01275, allocations: 244.1 kB / 256.7 MB, free: 1.379 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.01293, allocations: 144 kB / 256.9 MB, free: 1.215 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.597e-05/0.01299, allocations: 28.38 kB / 256.9 MB, free: 1.188 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008093/0.0138, allocations: 400.2 kB / 257.3 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.01382, allocations: 192 / 257.3 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.01386, allocations: 20.12 kB / 257.3 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.01387, allocations: 8 kB / 257.3 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008724/0.01474, allocations: 366.3 kB / 257.7 MB, free: 392 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002686/0.01743, allocations: 1.22 MB / 258.9 MB, free: 15.11 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007124/0.01814, allocations: 310.9 kB / 259.2 MB, free: 14.8 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003852/0.01853, allocations: 159.6 kB / 259.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.01857, allocations: 8.719 kB / 259.4 MB, free: 14.63 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.01861, allocations: 37.39 kB / 259.4 MB, free: 14.58 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.01861, allocations: 0 / 259.4 MB, free: 14.58 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.005019/0.02363, allocations: 1.621 MB / 261 MB, free: 12.89 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.787e-05/0.02371, allocations: 88.8 kB / 261.1 MB, free: 12.79 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.02411, allocations: 305.6 kB / 261.4 MB, free: 12.47 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.02415, allocations: 33.7 kB / 261.4 MB, free: 12.43 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.0243, allocations: 187.6 kB / 261.6 MB, free: 12.24 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.02447, allocations: 162.6 kB / 261.8 MB, free: 12.08 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.02465, allocations: 99.83 kB / 261.9 MB, free: 11.98 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003052/0.02495, allocations: 0.5196 MB / 262.4 MB, free: 11.45 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.02533, allocations: 140.9 kB / 262.5 MB, free: 11.31 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.02582, allocations: 257.2 kB / 262.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000754/0.02658, allocations: 330.3 kB / 263.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.02658, allocations: 4 kB / 263.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001431/0.02801, allocations: 0.5283 MB / 263.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.02804, allocations: 11.94 kB / 263.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.02805, allocations: 0 / 263.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008907/0.02894, allocations: 259.5 kB / 263.9 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.02918, allocations: 55.91 kB / 264 MB, free: 9.812 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005101/0.03428, allocations: 3.361 MB / 267.3 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.03454, allocations: 15.98 kB / 267.3 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.943e-05/0.03459, allocations: 19.98 kB / 267.4 MB, free: 6.297 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.000268/0.03486, allocations: 196.1 kB / 267.5 MB, free: 6.098 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.03497, allocations: 43.8 kB / 267.6 MB, free: 6.055 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.03508, allocations: 39 kB / 267.6 MB, free: 6.016 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.03508, allocations: 4.031 kB / 267.6 MB, free: 6.012 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.03509, allocations: 7.984 kB / 267.6 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.03509, allocations: 0 / 267.6 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.03726, allocations: 1.006 MB / 268.6 MB, free: 4.953 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.03727, allocations: 0 / 268.6 MB, free: 4.953 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.0375, allocations: 43.97 kB / 268.7 MB, free: 4.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007749/0.03828, allocations: 248 kB / 268.9 MB, free: 4.664 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.03832, allocations: 15.98 kB / 268.9 MB, free: 4.648 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00462/0.04294, allocations: 3.293 MB / 272.2 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.04294, allocations: 0 / 272.2 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.04485, allocations: 0.8466 MB / 273.1 MB, free: 380 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.04502, allocations: 67.75 kB / 273.1 MB, free: 312 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.054e-05/0.04507, allocations: 4 kB / 273.2 MB, free: 308 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.04531, allocations: 19.98 kB / 273.2 MB, free: 288 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.04548, allocations: 67.94 kB / 273.2 MB, free: 220 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.04552, allocations: 15.98 kB / 273.3 MB, free: 204 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002885/0.04581, allocations: 212.2 kB / 273.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.04581, allocations: 0 / 273.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006294/0.04644, allocations: 143.9 kB / 273.6 MB, free: 15.85 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002889/0.04673, allocations: 131.2 kB / 273.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.04813, allocations: 0.6671 MB / 274.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.04813, allocations: 0 / 274.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008839/0.04902, allocations: 0.4888 MB / 274.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.04946, allocations: 47.97 kB / 274.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.05087, allocations: 0.6363 MB / 275.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.05108, allocations: 167.8 kB / 275.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001722/0.05126, allocations: 46.95 kB / 275.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.19e-05/0.05135, allocations: 32.48 kB / 275.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.05135, allocations: 0 / 275.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of Templates: time 0.01463/0.06598, allocations: 6.635 MB / 282.4 MB, free: 6.922 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.545254493947141]