Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00735/0.00735, allocations: 107.9 kB / 21.97 MB, free: 5.184 MB / 14.72 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.002103/0.002103, allocations: 218.2 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 259 MB, free: 8.031 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 63.91 kB / 379.8 MB, free: 2.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3205, allocations: 53.36 MB / 433.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004593/0.3251, allocations: 2.892 MB / 436 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.3275, allocations: 1.291 MB / 437.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.3277, allocations: 11.94 kB / 437.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003473/0.328, allocations: 87.28 kB / 437.4 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000548/0.3286, allocations: 222.9 kB / 437.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.3291, allocations: 247.5 kB / 437.9 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008189/0.3299, allocations: 0.7172 MB / 438.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.3301, allocations: 87.91 kB / 438.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005041/0.3307, allocations: 339.1 kB / 439 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005377/0.3312, allocations: 386.8 kB / 439.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.494e-05/0.3313, allocations: 56 kB / 439.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002727/0.3316, allocations: 151.9 kB / 439.6 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.3318, allocations: 163.5 kB / 439.8 MB, free: 348 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002774/0.332, allocations: 270.7 kB / 440 MB, free: 76 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008903/0.3329, allocations: 0.7252 MB / 440.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3329, allocations: 4 kB / 440.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3329, allocations: 3.938 kB / 440.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.3329, allocations: 0 / 440.8 MB, free: 15.34 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001703/0.3346, allocations: 0.7855 MB / 441.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3347, allocations: 8.031 kB / 441.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004367/0.3351, allocations: 72.62 kB / 441.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006611/0.3358, allocations: 304.8 kB / 441.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.3359, allocations: 104.9 kB / 442 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.309e-05/0.336, allocations: 44.33 kB / 442.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.3372, allocations: 0.5683 MB / 442.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.3372, allocations: 0 / 442.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.468e-05/0.3373, allocations: 16 kB / 442.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.3373, allocations: 15.94 kB / 442.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.3387, allocations: 0.6089 MB / 443.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.3413, allocations: 1.243 MB / 444.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3425, allocations: 494.1 kB / 445 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006333/0.3432, allocations: 278.4 kB / 445.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.105e-05/0.3432, allocations: 20.42 kB / 445.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.3433, allocations: 35.06 kB / 445.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.876e-06/0.3433, allocations: 4 kB / 445.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007175/0.3504, allocations: 2.45 MB / 447.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/0.3506, allocations: 85.77 kB / 447.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000503/0.3511, allocations: 348.5 kB / 448.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.995e-05/0.3512, allocations: 45.69 kB / 448.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.3513, allocations: 165.8 kB / 448.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.3515, allocations: 249.9 kB / 448.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.3518, allocations: 126.2 kB / 448.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.3519, allocations: 350.8 kB / 449.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/0.3526, allocations: 269.2 kB / 449.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007188/0.3533, allocations: 334.5 kB / 449.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.3544, allocations: 495.5 kB / 450.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3544, allocations: 0 / 450.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001916/0.3563, allocations: 0.818 MB / 451 MB, free: 4.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3564, allocations: 4 kB / 451 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3564, allocations: 4.031 kB / 451 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.3575, allocations: 437.3 kB / 451.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005013/0.358, allocations: 87.88 kB / 451.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.3595, allocations: 1.026 MB / 452.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005051/0.36, allocations: 59.95 kB / 452.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-05/0.3601, allocations: 23.98 kB / 452.7 MB, free: 3.152 MB / 350.1 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.0002954/0.3603, allocations: 193.8 kB / 452.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.3605, allocations: 47.72 kB / 452.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001661/0.3606, allocations: 67.86 kB / 453 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.3607, allocations: 4 kB / 453 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.3607, allocations: 0 / 453 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3607, allocations: 7.984 kB / 453 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003472/0.3641, allocations: 1.656 MB / 454.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3641, allocations: 0 / 454.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/0.3645, allocations: 79.88 kB / 454.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/0.3656, allocations: 420.5 kB / 455.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.3656, allocations: 19.98 kB / 455.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.367, allocations: 0.9874 MB / 456.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.367, allocations: 0 / 456.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00266/0.3696, allocations: 1.216 MB / 457.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.3699, allocations: 115.6 kB / 457.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.37, allocations: 20 kB / 457.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.3704, allocations: 47.94 kB / 457.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.3707, allocations: 92.47 kB / 457.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.916e-05/0.3707, allocations: 31.97 kB / 457.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003523/0.3711, allocations: 255.1 kB / 457.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3711, allocations: 4 kB / 457.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005413/0.3716, allocations: 140 kB / 458 MB, free: 13.66 MB / 366.1 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.001532/0.3732, allocations: 407.3 kB / 458.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.375, allocations: 0.6312 MB / 459.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.375, allocations: 0 / 459.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008545/0.3758, allocations: 340.7 kB / 459.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.3764, allocations: 76.28 kB / 459.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.3792, allocations: 1.187 MB / 460.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005132/0.3797, allocations: 0.8252 MB / 461.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.38, allocations: 55.39 kB / 461.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.38, allocations: 0 / 461.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of Templates: time 0.01304/0.393, allocations: 8.117 MB / 469.6 MB, free: 2.102 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.484641792951152]