Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00698/0.00698, allocations: 148.3 kB / 24.68 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9151/0.9151, allocations: 173.4 MB / 201.2 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.482e-05, allocations: 10.16 kB / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002512/0.002537, allocations: 2.544 MB / 322.2 MB, free: 3.293 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.003928, allocations: 1.061 MB / 323.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.004055, allocations: 7.938 kB / 323.3 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.004273, allocations: 71.36 kB / 323.4 MB, free: 2.148 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004628/0.004736, allocations: 206.6 kB / 323.6 MB, free: 1.945 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.005002, allocations: 243.5 kB / 323.8 MB, free: 1.707 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000405/0.005407, allocations: 0.6623 MB / 324.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.005558, allocations: 76.86 kB / 324.5 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003272/0.005886, allocations: 415.2 kB / 325 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.006143, allocations: 295.3 kB / 325.2 MB, free: 272 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.326e-05/0.006196, allocations: 52 kB / 325.3 MB, free: 220 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.006349, allocations: 131.9 kB / 325.4 MB, free: 88 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.006475, allocations: 147.5 kB / 325.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.006592, allocations: 183.6 kB / 325.7 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006506/0.007242, allocations: 0.6972 MB / 326.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.007246, allocations: 4 kB / 326.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.007247, allocations: 0 / 326.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.007252, allocations: 4 kB / 326.4 MB, free: 15.05 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009542/0.008207, allocations: 0.735 MB / 327.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.008241, allocations: 8.031 kB / 327.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.008437, allocations: 68.64 kB / 327.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.00883, allocations: 308.4 kB / 327.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.008932, allocations: 148.4 kB / 327.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.008988, allocations: 40.38 kB / 327.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.009629, allocations: 0.5744 MB / 328.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.009653, allocations: 20.12 kB / 328.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.552e-05/0.009688, allocations: 24.06 kB / 328.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.009695, allocations: 8 kB / 328.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007271/0.01042, allocations: 0.6245 MB / 329 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.01176, allocations: 1.041 MB / 330 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006809/0.01244, allocations: 0.5211 MB / 330.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.01279, allocations: 294.2 kB / 330.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.01283, allocations: 4.5 kB / 330.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.01285, allocations: 43.06 kB / 330.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 2.464e-06/0.01286, allocations: 0 / 330.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.003944/0.0168, allocations: 2.564 MB / 333.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.01684, allocations: 85.77 kB / 333.5 MB, free: 7.738 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.01706, allocations: 301.9 kB / 333.8 MB, free: 7.434 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.0171, allocations: 41.7 kB / 333.9 MB, free: 7.387 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.76e-05/0.01718, allocations: 165.6 kB / 334 MB, free: 7.223 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.01729, allocations: 242 kB / 334.3 MB, free: 6.984 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.01741, allocations: 114.3 kB / 334.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.0175, allocations: 350.7 kB / 334.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.01785, allocations: 289.2 kB / 335 MB, free: 6.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003769/0.01822, allocations: 384.2 kB / 335.4 MB, free: 5.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/0.01883, allocations: 0.5229 MB / 335.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.01883, allocations: 0 / 335.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009784/0.01981, allocations: 0.862 MB / 336.8 MB, free: 4.438 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.01982, allocations: 8 kB / 336.8 MB, free: 4.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.01983, allocations: 4 kB / 336.8 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006078/0.02044, allocations: 475.3 kB / 337.2 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.02062, allocations: 79.89 kB / 337.3 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008282/0.02145, allocations: 1.091 MB / 338.4 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.02165, allocations: 56 kB / 338.5 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.02169, allocations: 31.98 kB / 338.5 MB, free: 2.68 MB / 298.7 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.02184, allocations: 173.8 kB / 338.7 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.364e-05/0.0219, allocations: 43.7 kB / 338.7 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.454e-05/0.02197, allocations: 59.75 kB / 338.8 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.02198, allocations: 15.92 kB / 338.8 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.02198, allocations: 4 kB / 338.8 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.02199, allocations: 0 / 338.8 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.02395, allocations: 1.575 MB / 340.4 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.02395, allocations: 0 / 340.4 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.02414, allocations: 79.88 kB / 340.4 MB, free: 0.668 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005146/0.02465, allocations: 448.5 kB / 340.9 MB, free: 232 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.02468, allocations: 23.92 kB / 340.9 MB, free: 208 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007513/0.02543, allocations: 1.04 MB / 341.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.02543, allocations: 0 / 341.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.02685, allocations: 1.294 MB / 343.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.027, allocations: 99.66 kB / 343.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.02705, allocations: 19.94 kB / 343.4 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.02724, allocations: 51.94 kB / 343.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.02736, allocations: 92.47 kB / 343.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.02739, allocations: 23.98 kB / 343.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001502/0.02754, allocations: 229.1 kB / 343.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02754, allocations: 4.062 kB / 343.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003005/0.02784, allocations: 143.9 kB / 343.9 MB, free: 13.17 MB / 314.7 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001903/0.02803, allocations: 157 kB / 344 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008839/0.02892, allocations: 0.6702 MB / 344.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.02892, allocations: 4 kB / 344.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004506/0.02937, allocations: 356.7 kB / 345.1 MB, free: 11.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.0297, allocations: 60.52 kB / 345.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.03128, allocations: 1.097 MB / 346.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.03143, allocations: 222 kB / 346.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.03153, allocations: 44.47 kB / 346.5 MB, free: 10.53 MB / 314.7 MB Notification: Performance of SimCode: time 9.01e-07/0.03153, allocations: 0 / 346.5 MB, free: 10.53 MB / 314.7 MB Notification: Performance of Templates: time 0.00701/0.03854, allocations: 7.338 MB / 353.8 MB, free: 3.203 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.71237082965672]