Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001756/0.001756, allocations: 116 kB / 18.45 MB, free: 4.594 MB / 14.72 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.002181/0.002181, allocations: 208.3 kB / 21.41 MB, free: 1.637 MB / 14.72 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 1.468/1.468, allocations: 230.6 MB / 254.8 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] 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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 51.92 kB / 374.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1078, allocations: 53.33 MB / 427.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004578/0.1123, allocations: 2.875 MB / 430.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.1148, allocations: 1.279 MB / 431.6 MB, free: 156 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.115, allocations: 7.938 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003749/0.1153, allocations: 87.28 kB / 431.7 MB, free: 60 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005754/0.1159, allocations: 223.5 kB / 431.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005288/0.1164, allocations: 246.2 kB / 432.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007525/0.1172, allocations: 0.7172 MB / 432.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.1174, allocations: 87.45 kB / 433 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004735/0.1179, allocations: 335.1 kB / 433.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004782/0.1184, allocations: 378.8 kB / 433.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.296e-05/0.1185, allocations: 56 kB / 433.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002901/0.1188, allocations: 167.8 kB / 433.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.119, allocations: 163.6 kB / 434.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.1192, allocations: 262.7 kB / 434.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008531/0.1201, allocations: 0.72 MB / 435 MB, free: 12.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1201, allocations: 0 / 435 MB, free: 12.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1201, allocations: 0 / 435 MB, free: 12.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.1201, allocations: 0 / 435 MB, free: 12.73 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001816/0.1219, allocations: 0.8608 MB / 435.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.122, allocations: 8.031 kB / 435.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004587/0.1224, allocations: 76.62 kB / 436 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006606/0.1231, allocations: 374.5 kB / 436.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.1232, allocations: 104.9 kB / 436.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.1233, allocations: 44.33 kB / 436.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.1245, allocations: 0.5567 MB / 437 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.1245, allocations: 8 kB / 437.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.39e-05/0.1246, allocations: 16 kB / 437.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1246, allocations: 8 kB / 437.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.126, allocations: 0.6128 MB / 437.7 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.1287, allocations: 1.311 MB / 439 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.1299, allocations: 493.3 kB / 439.5 MB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006544/0.1306, allocations: 270.4 kB / 439.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.972e-05/0.1306, allocations: 20.48 kB / 439.8 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/0.1307, allocations: 47.12 kB / 439.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.334e-06/0.1307, allocations: 0 / 439.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=70): time 0.00752/0.1382, allocations: 2.735 MB / 442.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/0.1383, allocations: 85.67 kB / 442.6 MB, free: 4.805 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005106/0.1388, allocations: 347.3 kB / 443 MB, free: 4.453 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.853e-05/0.1389, allocations: 41.7 kB / 443 MB, free: 4.406 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.139, allocations: 169.7 kB / 443.2 MB, free: 4.234 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.1392, allocations: 245.9 kB / 443.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002455/0.1395, allocations: 122.3 kB / 443.5 MB, free: 3.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.1396, allocations: 354.8 kB / 443.9 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006438/0.1403, allocations: 273.1 kB / 444.1 MB, free: 3.242 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007082/0.141, allocations: 330.5 kB / 444.5 MB, free: 2.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.1421, allocations: 495.2 kB / 445 MB, free: 2.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1422, allocations: 0 / 445 MB, free: 2.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001931/0.1441, allocations: 0.818 MB / 445.8 MB, free: 1.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.1441, allocations: 11.94 kB / 445.8 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.1441, allocations: 0 / 445.8 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.1453, allocations: 444.4 kB / 446.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004161/0.1457, allocations: 95.92 kB / 446.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.1471, allocations: 1.021 MB / 447.3 MB, free: 0 / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.216/0.363, allocations: 55.72 kB / 447.4 MB, free: 24.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.3632, allocations: 26.66 kB / 447.4 MB, free: 24.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002934/0.3634, allocations: 177.1 kB / 447.6 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.3636, allocations: 45.39 kB / 447.6 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001698/0.3638, allocations: 65.86 kB / 447.7 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.3638, allocations: 11.16 kB / 447.7 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3638, allocations: 0 / 447.7 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3638, allocations: 7.109 kB / 447.7 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003076/0.3669, allocations: 1.686 MB / 449.4 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3669, allocations: 0 / 449.4 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003775/0.3672, allocations: 83.2 kB / 449.5 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009811/0.3682, allocations: 426.9 kB / 449.9 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.3683, allocations: 22.47 kB / 449.9 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.3694, allocations: 0.97 MB / 450.9 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3694, allocations: 1.781 kB / 450.9 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/0.3719, allocations: 1.214 MB / 452.1 MB, free: 23.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/0.3721, allocations: 188.8 kB / 452.3 MB, free: 23.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.499e-05/0.3722, allocations: 22.94 kB / 452.3 MB, free: 23.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.3727, allocations: 52.45 kB / 452.4 MB, free: 23.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.3729, allocations: 88.83 kB / 452.5 MB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.735e-05/0.373, allocations: 31.75 kB / 452.5 MB, free: 23.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003257/0.3733, allocations: 252.1 kB / 452.7 MB, free: 22.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3733, allocations: 0 / 452.7 MB, free: 22.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000542/0.3739, allocations: 146 kB / 452.9 MB, free: 22.97 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001387/0.3753, allocations: 400 kB / 453.3 MB, free: 22.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.3769, allocations: 0.6316 MB / 453.9 MB, free: 22.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3769, allocations: 0 / 453.9 MB, free: 22.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008593/0.3777, allocations: 342.7 kB / 454.2 MB, free: 22.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.3782, allocations: 72.61 kB / 454.3 MB, free: 22.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.3809, allocations: 1.177 MB / 455.5 MB, free: 21.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.3812, allocations: 0.8315 MB / 456.3 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.3814, allocations: 55.91 kB / 456.4 MB, free: 21.24 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3814, allocations: 1.219 kB / 456.4 MB, free: 21.24 MB / 366.1 MB Notification: Performance of Templates: time 0.01315/0.3946, allocations: 8.111 MB / 464.5 MB, free: 19.62 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 8.397672454011627]