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.0008263/0.0008263, allocations: 87.62 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.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.003615/0.003615, allocations: 162.4 kB / 24.7 MB, free: 8.91 MB / 18.57 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 0.8874/0.8874, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 1.433e-06/1.433e-06, allocations: 0 / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/2.137e-05, allocations: 6.281 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00379/0.003811, allocations: 2.697 MB / 328.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.005933, allocations: 1.232 MB / 329.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.006084, allocations: 11.94 kB / 329.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.006349, allocations: 99.14 kB / 329.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004317/0.006781, allocations: 214.7 kB / 330.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.007141, allocations: 260.1 kB / 330.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004477/0.007589, allocations: 0.7247 MB / 331 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.007763, allocations: 87.91 kB / 331.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005029/0.008266, allocations: 439.1 kB / 331.6 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.008543, allocations: 331.3 kB / 331.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.803e-05/0.008601, allocations: 60 kB / 331.9 MB, free: 9.309 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.008771, allocations: 143.9 kB / 332.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.008896, allocations: 167.5 kB / 332.2 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.009019, allocations: 203.5 kB / 332.4 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005545/0.009573, allocations: 0.7789 MB / 333.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.009575, allocations: 0 / 333.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.009577, allocations: 0 / 333.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.009582, allocations: 3.938 kB / 333.2 MB, free: 8.02 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.0009791/0.01056, allocations: 0.7661 MB / 334 MB, free: 7.223 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.01059, allocations: 8.031 kB / 334 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002705/0.01086, allocations: 76.62 kB / 334.1 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.01125, allocations: 312.4 kB / 334.4 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.01136, allocations: 152.4 kB / 334.5 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.248e-05/0.01142, allocations: 48.31 kB / 334.6 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009297/0.01235, allocations: 0.5782 MB / 335.2 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.01237, allocations: 4.188 kB / 335.2 MB, free: 5.984 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.419e-05/0.0124, allocations: 16.12 kB / 335.2 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.01241, allocations: 16 kB / 335.2 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007814/0.01319, allocations: 0.605 MB / 335.8 MB, free: 5.348 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.0146, allocations: 1.06 MB / 336.9 MB, free: 4.254 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007026/0.01531, allocations: 493.5 kB / 337.3 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003494/0.01566, allocations: 273.2 kB / 337.6 MB, free: 3.496 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.01569, allocations: 20.44 kB / 337.6 MB, free: 3.477 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.01571, allocations: 39.06 kB / 337.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 1.644e-06/0.01571, allocations: 0 / 337.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.003751/0.01946, allocations: 2.43 MB / 340.1 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.01951, allocations: 85.77 kB / 340.2 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002573/0.01976, allocations: 333.7 kB / 340.5 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.113e-05/0.0198, allocations: 45.69 kB / 340.5 MB, free: 472 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.827e-05/0.01988, allocations: 169.7 kB / 340.7 MB, free: 300 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.02, allocations: 249.9 kB / 341 MB, free: 48 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.02014, allocations: 126.2 kB / 341.1 MB, free: 15.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.02024, allocations: 354.7 kB / 341.4 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/0.02059, allocations: 265.2 kB / 341.7 MB, free: 15.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003931/0.02098, allocations: 356.2 kB / 342 MB, free: 14.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008828/0.02187, allocations: 495.5 kB / 342.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.02187, allocations: 3.938 kB / 342.5 MB, free: 14.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001027/0.0229, allocations: 0.8181 MB / 343.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.02291, allocations: 4 kB / 343.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.02292, allocations: 0 / 343.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006135/0.02353, allocations: 449 kB / 343.8 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.02372, allocations: 87.88 kB / 343.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008174/0.02454, allocations: 1.022 MB / 344.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.02476, allocations: 64.03 kB / 345 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.0248, allocations: 23.98 kB / 345 MB, free: 11.95 MB / 314.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.02495, allocations: 177.8 kB / 345.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.2e-05/0.02502, allocations: 43.7 kB / 345.2 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.614e-05/0.02509, allocations: 63.73 kB / 345.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.0251, allocations: 8 kB / 345.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.0251, allocations: 4 kB / 345.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.02511, allocations: 3.984 kB / 345.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.02695, allocations: 1.509 MB / 346.8 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.02695, allocations: 4.031 kB / 346.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.02714, allocations: 83.88 kB / 346.9 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005398/0.02768, allocations: 404.5 kB / 347.3 MB, free: 9.594 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.02771, allocations: 19.98 kB / 347.3 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007475/0.02846, allocations: 0.979 MB / 348.3 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.02846, allocations: 0 / 348.3 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.03021, allocations: 1.212 MB / 349.5 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.03036, allocations: 111.7 kB / 349.6 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.426e-05/0.03042, allocations: 24 kB / 349.6 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.03062, allocations: 47.94 kB / 349.6 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.03076, allocations: 96.47 kB / 349.7 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.0308, allocations: 31.97 kB / 349.8 MB, free: 7.031 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000166/0.03096, allocations: 233.2 kB / 350 MB, free: 6.805 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03096, allocations: 0 / 350 MB, free: 6.805 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003043/0.03127, allocations: 143.9 kB / 350.1 MB, free: 6.664 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006853/0.03195, allocations: 430.5 kB / 350.6 MB, free: 6.391 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009348/0.03289, allocations: 0.6312 MB / 351.2 MB, free: 5.762 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.03289, allocations: 0 / 351.2 MB, free: 5.762 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004612/0.03335, allocations: 336.6 kB / 351.5 MB, free: 5.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.03368, allocations: 76.27 kB / 351.6 MB, free: 5.355 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.03523, allocations: 1.121 MB / 352.7 MB, free: 4.203 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.03537, allocations: 218 kB / 352.9 MB, free: 3.969 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.0355, allocations: 56.45 kB / 353 MB, free: 3.91 MB / 314.7 MB Notification: Performance of SimCode: time 4.3e-07/0.0355, allocations: 0 / 353 MB, free: 3.91 MB / 314.7 MB Notification: Performance of Templates: time 0.007377/0.04288, allocations: 8.212 MB / 361.2 MB, free: 11.71 MB / 330.7 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:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 4.756802998483181]