Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00144/0.00144, allocations: 96.31 kB / 21.73 MB, free: 2.68 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.001563/0.001563, allocations: 169 kB / 25.02 MB, free: 8.965 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.432/1.432, allocations: 158.6 MB / 186.8 MB, free: 2.906 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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.364e-05/1.364e-05, allocations: 7.984 kB / 250.4 MB, free: 7.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.458e-05/4.821e-05, allocations: 2.312 kB / 250.4 MB, free: 7.824 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.008255/0.008303, allocations: 2.553 MB / 252.9 MB, free: 5.258 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004328/0.01263, allocations: 1.101 MB / 254 MB, free: 4.141 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.01301, allocations: 11.94 kB / 254 MB, free: 4.129 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005166/0.01353, allocations: 71.36 kB / 254.1 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0013/0.01483, allocations: 198.6 kB / 254.3 MB, free: 3.863 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.01593, allocations: 255.5 kB / 254.5 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.0175, allocations: 0.6585 MB / 255.2 MB, free: 2.949 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000365/0.01787, allocations: 79.92 kB / 255.3 MB, free: 2.871 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001325/0.01919, allocations: 403.2 kB / 255.7 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.02021, allocations: 299.3 kB / 256 MB, free: 2.184 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.02045, allocations: 52 kB / 256 MB, free: 2.133 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000599/0.02105, allocations: 135.9 kB / 256.1 MB, free: 2 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003923/0.02144, allocations: 155.4 kB / 256.3 MB, free: 1.848 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005958/0.02204, allocations: 179.6 kB / 256.5 MB, free: 1.672 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001912/0.02395, allocations: 0.701 MB / 257.2 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.422e-05/0.02397, allocations: 4 kB / 257.2 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.02397, allocations: 0 / 257.2 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.02399, allocations: 0 / 257.2 MB, free: 0.9648 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.003482/0.02747, allocations: 0.7234 MB / 257.9 MB, free: 216 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.237e-05/0.02755, allocations: 12.03 kB / 257.9 MB, free: 204 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009103/0.02846, allocations: 104.6 kB / 258 MB, free: 100 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.02975, allocations: 308.5 kB / 258.3 MB, free: 15.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003563/0.03011, allocations: 152.3 kB / 258.5 MB, free: 15.6 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002071/0.03032, allocations: 44.33 kB / 258.5 MB, free: 15.55 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.03268, allocations: 0.5822 MB / 259.1 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.276e-05/0.03272, allocations: 4.188 kB / 259.1 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.03283, allocations: 20.12 kB / 259.1 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.03285, allocations: 8 kB / 259.1 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00291/0.03576, allocations: 0.6323 MB / 259.8 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003208/0.03897, allocations: 1.06 MB / 260.8 MB, free: 13.2 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.04037, allocations: 0.5054 MB / 261.3 MB, free: 12.68 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007506/0.04112, allocations: 298.3 kB / 261.6 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.407e-05/0.04117, allocations: 8.5 kB / 261.6 MB, free: 12.38 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/0.04122, allocations: 43.06 kB / 261.7 MB, free: 12.33 MB / 250.7 MB Notification: Performance of pre-optimization done (n=61): time 3.857e-06/0.04123, allocations: 0 / 261.7 MB, free: 12.33 MB / 250.7 MB Notification: Performance of matching and sorting (n=69): time 0.008232/0.04946, allocations: 2.583 MB / 264.2 MB, free: 9.699 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.745e-05/0.04955, allocations: 85.77 kB / 264.3 MB, free: 9.598 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005477/0.05009, allocations: 309.8 kB / 264.6 MB, free: 9.289 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.308e-05/0.05017, allocations: 37.7 kB / 264.7 MB, free: 9.246 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.05035, allocations: 173.6 kB / 264.8 MB, free: 9.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/0.05064, allocations: 234.1 kB / 265.1 MB, free: 8.84 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002931/0.05093, allocations: 122.3 kB / 265.2 MB, free: 8.715 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002257/0.05116, allocations: 346.7 kB / 265.5 MB, free: 8.367 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007033/0.05186, allocations: 289.2 kB / 265.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.05265, allocations: 380.2 kB / 266.2 MB, free: 7.695 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.05391, allocations: 0.5308 MB / 266.7 MB, free: 7.156 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.05391, allocations: 0 / 266.7 MB, free: 7.156 MB / 250.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002165/0.05608, allocations: 0.8853 MB / 267.6 MB, free: 6.262 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.05611, allocations: 4 kB / 267.6 MB, free: 6.258 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.05612, allocations: 4 kB / 267.6 MB, free: 6.254 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.05744, allocations: 477.6 kB / 268.1 MB, free: 5.785 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000416/0.05785, allocations: 87.81 kB / 268.2 MB, free: 5.699 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.05951, allocations: 1.091 MB / 269.2 MB, free: 4.582 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005291/0.06004, allocations: 51.94 kB / 269.3 MB, free: 4.531 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-05/0.06012, allocations: 28.03 kB / 269.3 MB, free: 4.504 MB / 250.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.0003479/0.06047, allocations: 189.5 kB / 269.5 MB, free: 4.309 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.06067, allocations: 67.66 kB / 269.6 MB, free: 4.242 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.06087, allocations: 63.73 kB / 269.6 MB, free: 4.176 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.06088, allocations: 4 kB / 269.6 MB, free: 4.172 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.06089, allocations: 4 kB / 269.6 MB, free: 4.168 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.0609, allocations: 3.984 kB / 269.6 MB, free: 4.164 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003964/0.06486, allocations: 1.571 MB / 271.2 MB, free: 2.543 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.06487, allocations: 0 / 271.2 MB, free: 2.543 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00041/0.06528, allocations: 83.88 kB / 271.3 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.06643, allocations: 444.5 kB / 271.7 MB, free: 2.023 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.254e-05/0.0665, allocations: 15.98 kB / 271.7 MB, free: 2.008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00159/0.06808, allocations: 1.048 MB / 272.8 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.06809, allocations: 0 / 272.8 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003006/0.07109, allocations: 1.309 MB / 274.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003189/0.07141, allocations: 103.7 kB / 274.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.07153, allocations: 19.94 kB / 274.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000507/0.07204, allocations: 68.05 kB / 274.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.07227, allocations: 84.48 kB / 274.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.723e-05/0.07235, allocations: 23.98 kB / 274.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003447/0.0727, allocations: 225.2 kB / 274.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0727, allocations: 0 / 274.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005847/0.07328, allocations: 143.9 kB / 274.8 MB, free: 14.95 MB / 266.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.0003629/0.07364, allocations: 159.1 kB / 274.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.07552, allocations: 0.6624 MB / 275.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.07552, allocations: 4 kB / 275.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009654/0.07649, allocations: 360.5 kB / 275.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.07711, allocations: 96.33 kB / 276 MB, free: 13.67 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00304/0.08015, allocations: 1.061 MB / 277.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.08041, allocations: 214 kB / 277.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002636/0.08068, allocations: 63.38 kB / 277.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.08085, allocations: 44.48 kB / 277.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.08085, allocations: 0 / 277.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of Templates: time 0.01818/0.09903, allocations: 8.421 MB / 285.8 MB, free: 3.848 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,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.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.936987038934603]