Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00637/0.00637, allocations: 158.5 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9264/0.9264, allocations: 177 MB / 204.9 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.561e-05, allocations: 6.219 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00297/0.002996, allocations: 2.703 MB / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.004445, allocations: 1.228 MB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.004581, allocations: 11.94 kB / 329.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.004871, allocations: 91.2 kB / 329.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004168/0.005288, allocations: 215.6 kB / 330 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.005636, allocations: 263.4 kB / 330.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004805/0.006116, allocations: 0.7209 MB / 331 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.006282, allocations: 83.95 kB / 331.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004076/0.00669, allocations: 443.1 kB / 331.5 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002904/0.00698, allocations: 327.3 kB / 331.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.997e-05/0.00704, allocations: 59.94 kB / 331.9 MB, free: 9.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.007232, allocations: 155.8 kB / 332 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.00737, allocations: 167.5 kB / 332.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.0075, allocations: 199.6 kB / 332.4 MB, free: 8.738 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006113/0.008111, allocations: 0.7789 MB / 333.2 MB, free: 7.957 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.008115, allocations: 0 / 333.2 MB, free: 7.957 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.008116, allocations: 0 / 333.2 MB, free: 7.957 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.008123, allocations: 0 / 333.2 MB, free: 7.957 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.001044/0.009166, allocations: 0.7661 MB / 333.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.0092, allocations: 8.031 kB / 333.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.009447, allocations: 80.61 kB / 334 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004361/0.009883, allocations: 312.4 kB / 334.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.009999, allocations: 156.3 kB / 334.5 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/0.01006, allocations: 48.33 kB / 334.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.01074, allocations: 0.5744 MB / 335.1 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.01076, allocations: 4.188 kB / 335.1 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.01079, allocations: 20.12 kB / 335.1 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.0108, allocations: 8 kB / 335.1 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.01181, allocations: 0.6128 MB / 335.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.01324, allocations: 1.056 MB / 336.8 MB, free: 4.188 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.01395, allocations: 497.5 kB / 337.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/0.0143, allocations: 274.2 kB / 337.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.01434, allocations: 4.5 kB / 337.6 MB, free: 3.414 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.01436, allocations: 51.05 kB / 337.6 MB, free: 3.355 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 1.663e-06/0.01436, allocations: 0 / 337.6 MB, free: 3.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.003837/0.0182, allocations: 2.438 MB / 340 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.01824, allocations: 81.77 kB / 340.1 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.01849, allocations: 329.8 kB / 340.5 MB, free: 448 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.01853, allocations: 45.69 kB / 340.5 MB, free: 396 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.243e-05/0.01861, allocations: 169.7 kB / 340.7 MB, free: 224 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.01875, allocations: 250 kB / 340.9 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.01889, allocations: 118.3 kB / 341 MB, free: 15.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.042e-05/0.01898, allocations: 354.7 kB / 341.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.01933, allocations: 269.2 kB / 341.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.01972, allocations: 356.2 kB / 342 MB, free: 14.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006253/0.02035, allocations: 495.5 kB / 342.5 MB, free: 14.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.02035, allocations: 4.031 kB / 342.5 MB, free: 14.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001289/0.02164, allocations: 0.8181 MB / 343.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.02165, allocations: 4 kB / 343.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.02166, allocations: 3.938 kB / 343.3 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006355/0.0223, allocations: 452.9 kB / 343.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.02249, allocations: 87.88 kB / 343.8 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008317/0.02332, allocations: 1.022 MB / 344.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.02354, allocations: 60.03 kB / 344.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.02358, allocations: 27.98 kB / 344.9 MB, free: 11.87 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.0001622/0.02374, allocations: 177.7 kB / 345.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.02381, allocations: 43.7 kB / 345.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.845e-05/0.02388, allocations: 67.73 kB / 345.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.02389, allocations: 8 kB / 345.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.02389, allocations: 0 / 345.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.0239, allocations: 3.984 kB / 345.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.02575, allocations: 1.501 MB / 346.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.02576, allocations: 0 / 346.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/0.02595, allocations: 87.91 kB / 346.8 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005397/0.02649, allocations: 412.6 kB / 347.2 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.02652, allocations: 27.97 kB / 347.2 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007433/0.02726, allocations: 0.9673 MB / 348.2 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.02727, allocations: 4.062 kB / 348.2 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.02873, allocations: 1.208 MB / 349.4 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.0289, allocations: 111.6 kB / 349.5 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.02895, allocations: 20 kB / 349.5 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.02915, allocations: 56 kB / 349.6 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.02929, allocations: 92.47 kB / 349.7 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.02932, allocations: 27.97 kB / 349.7 MB, free: 6.961 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003501/0.02967, allocations: 233.2 kB / 349.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.02967, allocations: 0 / 349.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.03, allocations: 143.9 kB / 350.1 MB, free: 6.594 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.0006597/0.03066, allocations: 422.4 kB / 350.5 MB, free: 6.297 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009256/0.03159, allocations: 0.6351 MB / 351.1 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.03159, allocations: 0 / 351.1 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.03205, allocations: 336.6 kB / 351.5 MB, free: 5.332 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.03238, allocations: 72.47 kB / 351.5 MB, free: 5.262 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.03394, allocations: 1.113 MB / 352.6 MB, free: 4.117 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.03407, allocations: 222 kB / 352.9 MB, free: 3.879 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.0342, allocations: 56.45 kB / 352.9 MB, free: 3.82 MB / 314.7 MB Notification: Performance of SimCode: time 8.22e-07/0.0342, allocations: 0 / 352.9 MB, free: 3.82 MB / 314.7 MB Notification: Performance of Templates: time 0.007157/0.04136, allocations: 8.207 MB / 361.1 MB, free: 11.62 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.032815281301737]