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.001758/0.001758, allocations: 85.44 kB / 20.68 MB, free: 1.035 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.002255/0.002255, allocations: 163.6 kB / 23.95 MB, free: 4.168 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.475/1.475, allocations: 177.1 MB / 204.3 MB, free: 9.199 MB / 190.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 2.254e-06/2.254e-06, allocations: 1.125 kB / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.505e-05/2.73e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004205/0.004232, allocations: 2.687 MB / 327.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00275/0.006982, allocations: 1.248 MB / 329 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003041/0.007286, allocations: 9.188 kB / 329 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.007679, allocations: 88.67 kB / 329.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000709/0.008388, allocations: 220.6 kB / 329.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007291/0.009117, allocations: 262.6 kB / 329.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009975/0.01011, allocations: 0.7253 MB / 330.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.01035, allocations: 79.75 kB / 330.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008694/0.01122, allocations: 447.5 kB / 330.8 MB, free: 13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005623/0.01179, allocations: 328.6 kB / 331.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.01191, allocations: 58.19 kB / 331.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004056/0.01231, allocations: 144.5 kB / 331.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.01256, allocations: 170.8 kB / 331.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.01284, allocations: 202.7 kB / 331.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.01394, allocations: 0.7738 MB / 332.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.01395, allocations: 0 / 332.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.01395, allocations: 1.188 kB / 332.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.01396, allocations: 0 / 332.5 MB, free: 11.94 MB / 302.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.001862/0.01582, allocations: 0.7692 MB / 333.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.01586, allocations: 13.06 kB / 333.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000498/0.01636, allocations: 77.58 kB / 333.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00062/0.01698, allocations: 311.5 kB / 333.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.01719, allocations: 156.8 kB / 333.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.01729, allocations: 43.3 kB / 333.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.01851, allocations: 0.5801 MB / 334.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.01853, allocations: 5.406 kB / 334.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.7e-05/0.0186, allocations: 20.09 kB / 334.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.01861, allocations: 13 kB / 334.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.02005, allocations: 0.6034 MB / 335 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00257/0.02262, allocations: 1.063 MB / 336.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.02386, allocations: 493.4 kB / 336.6 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006727/0.02453, allocations: 275.6 kB / 336.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.626e-05/0.02458, allocations: 7 kB / 336.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.02461, allocations: 46.55 kB / 336.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.524e-06/0.02462, allocations: 4 kB / 336.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.00767/0.03229, allocations: 2.43 MB / 339.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.759e-05/0.03236, allocations: 85.77 kB / 339.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004981/0.03286, allocations: 325.8 kB / 339.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.16e-05/0.03294, allocations: 49.69 kB / 339.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.03309, allocations: 165.7 kB / 339.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/0.03332, allocations: 246 kB / 340.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002462/0.03357, allocations: 130.3 kB / 340.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.03376, allocations: 354.7 kB / 340.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006681/0.03442, allocations: 269.2 kB / 340.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007387/0.03516, allocations: 352.2 kB / 341.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.03641, allocations: 495.6 kB / 341.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.03641, allocations: 4.031 kB / 341.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002003/0.03841, allocations: 0.8141 MB / 342.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.03843, allocations: 4 kB / 342.6 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.03844, allocations: 4 kB / 342.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001226/0.03966, allocations: 449 kB / 343 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005053/0.04017, allocations: 83.88 kB / 343.1 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.04176, allocations: 1.027 MB / 344.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000547/0.0423, allocations: 64.06 kB / 344.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.056e-05/0.04237, allocations: 27.98 kB / 344.2 MB, free: 1.699 MB / 302.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.0002958/0.04267, allocations: 180.8 kB / 344.4 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.04279, allocations: 43.7 kB / 344.4 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.04295, allocations: 63.73 kB / 344.5 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.04295, allocations: 7.938 kB / 344.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.04296, allocations: 0 / 344.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.04297, allocations: 7.984 kB / 344.5 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003437/0.04641, allocations: 1.509 MB / 346 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.04641, allocations: 0 / 346 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/0.04682, allocations: 79.91 kB / 346.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.04786, allocations: 416.5 kB / 346.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.04792, allocations: 23.97 kB / 346.5 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/0.04935, allocations: 0.972 MB / 347.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.04935, allocations: 0 / 347.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.05211, allocations: 1.208 MB / 348.7 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002857/0.05239, allocations: 111.6 kB / 348.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.0525, allocations: 16 kB / 348.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004829/0.05299, allocations: 59.94 kB / 348.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002442/0.05323, allocations: 96.47 kB / 349 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.29e-05/0.05329, allocations: 27.97 kB / 349 MB, free: 12.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003382/0.05363, allocations: 233.2 kB / 349.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.05363, allocations: 0 / 349.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005844/0.05421, allocations: 139.9 kB / 349.4 MB, free: 12.42 MB / 318.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.001591/0.05581, allocations: 433 kB / 349.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.05754, allocations: 0.6273 MB / 350.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.05755, allocations: 4 kB / 350.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009061/0.05845, allocations: 344.6 kB / 350.8 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.05908, allocations: 72.62 kB / 350.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.06193, allocations: 1.084 MB / 351.9 MB, free: 10 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.06217, allocations: 217.9 kB / 352.1 MB, free: 9.766 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.06244, allocations: 79.3 kB / 352.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.06264, allocations: 56.45 kB / 352.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.06264, allocations: 0 / 352.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of Templates: time 0.01651/0.07916, allocations: 8.863 MB / 361.1 MB, free: 0.8086 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/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:DriveSine.amplitude,DriveSine.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.smoothness,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.ratio,gear.smoothness,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.64765789732337]