Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001431/0.001431, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001773/0.001773, allocations: 209.5 kB / 24.48 MB, free: 3.941 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 2.186/2.186, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 59.92 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3022, allocations: 53.36 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004674/0.3068, allocations: 2.338 MB / 434.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.309, allocations: 1.006 MB / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.3091, allocations: 4 kB / 435.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002901/0.3094, allocations: 67.48 kB / 435.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004851/0.3099, allocations: 155 kB / 435.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.3103, allocations: 163.7 kB / 436 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006056/0.3109, allocations: 470.7 kB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3111, allocations: 52.56 kB / 436.6 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002944/0.3114, allocations: 211.4 kB / 436.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000421/0.3118, allocations: 251.2 kB / 437 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.133e-05/0.3119, allocations: 36 kB / 437 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003362/0.3123, allocations: 127.9 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.3124, allocations: 111.7 kB / 437.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.3126, allocations: 151.4 kB / 437.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006949/0.3133, allocations: 497.2 kB / 437.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3133, allocations: 4 kB / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3133, allocations: 0 / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.3133, allocations: 4 kB / 437.9 MB, free: 1.086 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001503/0.3148, allocations: 0.5984 MB / 438.5 MB, free: 468 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3149, allocations: 8.031 kB / 438.5 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004102/0.3153, allocations: 48.73 kB / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006656/0.316, allocations: 247.6 kB / 438.8 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.3162, allocations: 151.9 kB / 439 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.728e-05/0.3163, allocations: 28.38 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009923/0.3173, allocations: 408.5 kB / 439.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.3173, allocations: 7.938 kB / 439.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.995e-05/0.3173, allocations: 12 kB / 439.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3174, allocations: 8 kB / 439.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.3185, allocations: 410.2 kB / 439.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.3211, allocations: 1.08 MB / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009556/0.3221, allocations: 326.5 kB / 441.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005317/0.3226, allocations: 176.7 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.3227, allocations: 4.719 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.3227, allocations: 42.5 kB / 441.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.605e-06/0.3227, allocations: 0 / 441.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.006598/0.3293, allocations: 1.664 MB / 443.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.255e-05/0.3294, allocations: 88.84 kB / 443.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000433/0.3298, allocations: 251.4 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.989e-05/0.3299, allocations: 33.7 kB / 443.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.33, allocations: 148.7 kB / 443.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.3302, allocations: 150.9 kB / 443.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.3304, allocations: 90.06 kB / 443.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3306, allocations: 334.8 kB / 444.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005039/0.3311, allocations: 160.8 kB / 444.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/0.3317, allocations: 259.6 kB / 444.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009758/0.3327, allocations: 335.2 kB / 444.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3327, allocations: 0 / 444.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001602/0.3343, allocations: 0.5436 MB / 445.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.3343, allocations: 8 kB / 445.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3343, allocations: 0 / 445.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.3354, allocations: 288.6 kB / 445.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.3357, allocations: 59.89 kB / 445.8 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005268/0.341, allocations: 2.727 MB / 448.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003719/0.3414, allocations: 27.97 kB / 448.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.812e-05/0.3414, allocations: 16 kB / 448.6 MB, free: 5.996 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002455/0.3417, allocations: 161.6 kB / 448.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.3418, allocations: 27.81 kB / 448.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.3419, allocations: 46.98 kB / 448.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.3419, allocations: 8.062 kB / 448.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.3419, allocations: 0 / 448.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.342, allocations: 4 kB / 448.8 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.3445, allocations: 0.9724 MB / 449.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3445, allocations: 3.984 kB / 449.8 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.3448, allocations: 39.97 kB / 449.8 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009991/0.3458, allocations: 284.7 kB / 450.1 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.551e-05/0.3458, allocations: 15.98 kB / 450.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005087/0.3509, allocations: 2.673 MB / 452.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3509, allocations: 0 / 452.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/0.3531, allocations: 0.7922 MB / 453.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.3534, allocations: 71.8 kB / 453.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/0.3535, allocations: 16.12 kB / 453.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003735/0.3538, allocations: 19.98 kB / 453.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.3541, allocations: 71.8 kB / 453.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.377e-05/0.3541, allocations: 23.92 kB / 453.8 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003104/0.3544, allocations: 180.5 kB / 454 MB, free: 444 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3544, allocations: 0 / 454 MB, free: 444 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008481/0.3553, allocations: 135.9 kB / 454.1 MB, free: 308 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001758/0.357, allocations: 405.5 kB / 454.5 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.359, allocations: 0.6025 MB / 455.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.359, allocations: 0 / 455.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.36, allocations: 413.6 kB / 455.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000578/0.3606, allocations: 43.69 kB / 455.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.3624, allocations: 0.7276 MB / 456.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000238/0.3627, allocations: 167.8 kB / 456.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002968/0.363, allocations: 74.91 kB / 456.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.3631, allocations: 39.41 kB / 456.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3631, allocations: 0 / 456.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of Templates: time 0.01861/0.3817, allocations: 7.33 MB / 463.9 MB, free: 6.637 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.314621718993294]