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.00157/0.00157, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001705/0.001705, allocations: 209.9 kB / 24.49 MB, free: 4.148 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.418/1.418, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.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 0.001482/0.001482, allocations: 51.92 kB / 379 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2528, allocations: 53.36 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004537/0.2573, allocations: 2.891 MB / 435.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.2596, allocations: 1.287 MB / 436.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.2597, allocations: 11.94 kB / 436.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.2601, allocations: 87.28 kB / 436.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005288/0.2606, allocations: 224.2 kB / 436.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.2611, allocations: 251.2 kB / 437.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007377/0.2619, allocations: 0.7172 MB / 437.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.2621, allocations: 87.91 kB / 437.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004708/0.2625, allocations: 335.1 kB / 438.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005012/0.263, allocations: 386.8 kB / 438.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.252e-05/0.2631, allocations: 56 kB / 438.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002639/0.2634, allocations: 151.9 kB / 438.8 MB, free: 468 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.2636, allocations: 171.5 kB / 439 MB, free: 296 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.2638, allocations: 266.8 kB / 439.3 MB, free: 28 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008379/0.2647, allocations: 0.7329 MB / 440 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2647, allocations: 0 / 440 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2647, allocations: 0 / 440 MB, free: 15.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.2647, allocations: 0 / 440 MB, free: 15.3 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.001652/0.2663, allocations: 0.7816 MB / 440.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2664, allocations: 8.031 kB / 440.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004167/0.2668, allocations: 72.62 kB / 440.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006243/0.2674, allocations: 316.7 kB / 441.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.2676, allocations: 156.3 kB / 441.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.29e-05/0.2677, allocations: 44.38 kB / 441.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.2687, allocations: 0.5528 MB / 441.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.2688, allocations: 4 kB / 441.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.102e-05/0.2688, allocations: 16 kB / 441.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.2688, allocations: 12 kB / 441.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.2701, allocations: 0.6206 MB / 442.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/0.2727, allocations: 1.239 MB / 443.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.2738, allocations: 497.3 kB / 444.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006054/0.2745, allocations: 278.2 kB / 444.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.512e-05/0.2745, allocations: 16.42 kB / 444.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.2745, allocations: 43.05 kB / 444.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.184e-06/0.2746, allocations: 0 / 444.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.00661/0.2812, allocations: 2.442 MB / 447.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.2812, allocations: 93.75 kB / 447.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004726/0.2817, allocations: 344.5 kB / 447.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-05/0.2818, allocations: 45.7 kB / 447.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.2819, allocations: 173.7 kB / 447.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.2822, allocations: 238 kB / 447.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.2824, allocations: 130.2 kB / 448.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2825, allocations: 346.8 kB / 448.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006007/0.2831, allocations: 265.2 kB / 448.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006695/0.2838, allocations: 338.5 kB / 449 MB, free: 6.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.2849, allocations: 491.5 kB / 449.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2849, allocations: 0 / 449.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001788/0.2867, allocations: 0.8259 MB / 450.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2867, allocations: 4 kB / 450.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.2867, allocations: 0 / 450.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.2878, allocations: 452.4 kB / 450.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/0.2882, allocations: 83.81 kB / 450.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.2896, allocations: 1.027 MB / 451.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.29, allocations: 56 kB / 451.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-05/0.2901, allocations: 31.98 kB / 451.9 MB, free: 3.031 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.0002597/0.2903, allocations: 173.7 kB / 452.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.2905, allocations: 47.72 kB / 452.2 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.2906, allocations: 67.86 kB / 452.2 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.2906, allocations: 8 kB / 452.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.2906, allocations: 0 / 452.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.2906, allocations: 7.984 kB / 452.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003258/0.2939, allocations: 1.66 MB / 453.9 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2939, allocations: 0 / 453.9 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003704/0.2943, allocations: 79.88 kB / 454 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009539/0.2952, allocations: 412.6 kB / 454.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.2953, allocations: 27.97 kB / 454.4 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.2965, allocations: 0.9796 MB / 455.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2965, allocations: 0 / 455.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.299, allocations: 1.212 MB / 456.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.2993, allocations: 119.5 kB / 456.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.809e-05/0.2994, allocations: 20 kB / 456.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.2998, allocations: 56 kB / 456.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.3, allocations: 92.47 kB / 456.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.318e-05/0.3, allocations: 27.97 kB / 456.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003362/0.3004, allocations: 263 kB / 457.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3004, allocations: 0 / 457.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005138/0.3009, allocations: 140 kB / 457.3 MB, free: 13.55 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.001404/0.3023, allocations: 407.1 kB / 457.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.3039, allocations: 0.6351 MB / 458.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3039, allocations: 0 / 458.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008098/0.3047, allocations: 344.6 kB / 458.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005338/0.3052, allocations: 64.53 kB / 458.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.3078, allocations: 1.187 MB / 459.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.3083, allocations: 0.8252 MB / 460.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.3085, allocations: 63.39 kB / 460.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3085, allocations: 0 / 460.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of Templates: time 0.0115/0.32, allocations: 8.109 MB / 468.9 MB, free: 1.992 MB / 366.1 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/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_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: 7.9490562989376485]