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.001934/0.001934, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002331/0.002331, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.53/1.53, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001688/0.001688, allocations: 39.94 kB / 373.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1152, allocations: 53.32 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004513/0.1197, allocations: 2.472 MB / 429.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.1216, allocations: 1.053 MB / 430.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.1217, allocations: 7.938 kB / 430.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.122, allocations: 59.5 kB / 430.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004067/0.1224, allocations: 152 kB / 430.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.1228, allocations: 171.6 kB / 430.7 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.191/0.3138, allocations: 460.1 kB / 431.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.314, allocations: 52.66 kB / 431.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004548/0.3145, allocations: 210.6 kB / 431.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003721/0.3148, allocations: 250.5 kB / 431.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.57e-05/0.3149, allocations: 37.94 kB / 431.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000337/0.3153, allocations: 123.7 kB / 431.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.3154, allocations: 111.9 kB / 431.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.3155, allocations: 176.5 kB / 432.1 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005331/0.3161, allocations: 0.4912 MB / 432.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3161, allocations: 1.719 kB / 432.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3161, allocations: 0.5938 kB / 432.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.3161, allocations: 0 / 432.6 MB, free: 8.5 MB / 350.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.001132/0.3172, allocations: 0.6642 MB / 433.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3172, allocations: 9.219 kB / 433.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003292/0.3176, allocations: 52.44 kB / 433.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.318, allocations: 310.2 kB / 433.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.3181, allocations: 89.75 kB / 433.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.156e-05/0.3182, allocations: 27.94 kB / 433.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007688/0.319, allocations: 394.4 kB / 434.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.319, allocations: 1.094 kB / 434.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.319, allocations: 11.31 kB / 434.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.319, allocations: 6.656 kB / 434.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008679/0.3199, allocations: 415.1 kB / 434.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.3219, allocations: 1.261 MB / 435.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007035/0.3226, allocations: 320.5 kB / 436.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003963/0.323, allocations: 166.1 kB / 436.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.323, allocations: 9.016 kB / 436.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.3231, allocations: 39.97 kB / 436.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.3231, allocations: 0 / 436.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004952/0.328, allocations: 1.891 MB / 438.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.328, allocations: 89.61 kB / 438.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.3284, allocations: 247.5 kB / 438.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.3284, allocations: 37.23 kB / 438.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.296e-05/0.3285, allocations: 141.9 kB / 438.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.3286, allocations: 165.8 kB / 438.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.3288, allocations: 88.16 kB / 438.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.879e-05/0.3288, allocations: 333.5 kB / 439.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003867/0.3292, allocations: 163.1 kB / 439.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.3296, allocations: 228.6 kB / 439.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007149/0.3304, allocations: 336 kB / 440 MB, free: 4.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3304, allocations: 0 / 440 MB, free: 4.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001196/0.3316, allocations: 0.5434 MB / 440.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.3316, allocations: 5.781 kB / 440.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3316, allocations: 1.656 kB / 440.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009245/0.3325, allocations: 294.7 kB / 440.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.3328, allocations: 59.44 kB / 440.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003858/0.3367, allocations: 2.905 MB / 443.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.337, allocations: 22.19 kB / 443.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.337, allocations: 19.47 kB / 443.8 MB, free: 2.293 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.0001709/0.3372, allocations: 161.2 kB / 444 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.452e-05/0.3373, allocations: 28.91 kB / 444 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.88e-05/0.3374, allocations: 43.41 kB / 444.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3374, allocations: 8.312 kB / 444.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3374, allocations: 0 / 444.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3374, allocations: 2.156 kB / 444.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.3392, allocations: 1.096 MB / 445.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3392, allocations: 3.562 kB / 445.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.3395, allocations: 53.75 kB / 445.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007598/0.3402, allocations: 272.1 kB / 445.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.3403, allocations: 24.3 kB / 445.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/0.3443, allocations: 2.857 MB / 448.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3443, allocations: 1.188 kB / 448.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.3464, allocations: 0.8012 MB / 449.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.3467, allocations: 145.8 kB / 449.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/0.3467, allocations: 18.78 kB / 449.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.347, allocations: 21.39 kB / 449.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.3473, allocations: 63.2 kB / 449.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.3473, allocations: 17.75 kB / 449.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002957/0.3476, allocations: 189.2 kB / 449.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3476, allocations: 0 / 449.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007829/0.3484, allocations: 139.9 kB / 449.7 MB, free: 14.58 MB / 366.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.00146/0.3498, allocations: 388.3 kB / 450.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001502/0.3513, allocations: 0.5956 MB / 450.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3513, allocations: 0 / 450.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000812/0.3522, allocations: 416 kB / 451.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004481/0.3526, allocations: 41.5 kB / 451.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.3541, allocations: 0.7116 MB / 451.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004559/0.3545, allocations: 0.7781 MB / 452.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.3547, allocations: 77.25 kB / 452.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3549, allocations: 37.09 kB / 452.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3549, allocations: 0 / 452.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of Templates: time 0.01435/0.3692, allocations: 7.745 MB / 460.5 MB, free: 10.09 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/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: 4.912827488034964]