Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001391/0.001391, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001586/0.001586, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.412/1.412, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 43.94 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2902, allocations: 53.36 MB / 432.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004262/0.2944, allocations: 2.568 MB / 434.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.2964, allocations: 1.162 MB / 436.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.2965, allocations: 11.88 kB / 436.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.2969, allocations: 67.42 kB / 436.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004656/0.2973, allocations: 175.3 kB / 436.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004166/0.2977, allocations: 183.6 kB / 436.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005945/0.2983, allocations: 0.518 MB / 437 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.2985, allocations: 57.16 kB / 437.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003822/0.2989, allocations: 243.3 kB / 437.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004017/0.2993, allocations: 279.2 kB / 437.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.276e-05/0.2994, allocations: 48 kB / 437.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002777/0.2996, allocations: 135.9 kB / 437.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.2998, allocations: 119.7 kB / 437.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.3, allocations: 199 kB / 438.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007082/0.3007, allocations: 0.5462 MB / 438.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3007, allocations: 3.938 kB / 438.7 MB, free: 0.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3007, allocations: 0 / 438.7 MB, free: 0.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.3007, allocations: 0 / 438.7 MB, free: 0.625 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001424/0.3022, allocations: 0.6376 MB / 439.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3022, allocations: 12.03 kB / 439.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.3026, allocations: 64.67 kB / 439.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005782/0.3032, allocations: 263 kB / 439.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.3034, allocations: 144 kB / 439.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-05/0.3035, allocations: 36.33 kB / 439.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008585/0.3043, allocations: 421 kB / 440.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.3043, allocations: 7.984 kB / 440.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.003e-05/0.3044, allocations: 12 kB / 440.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.3044, allocations: 4 kB / 440.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.3054, allocations: 474.3 kB / 440.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3073, allocations: 0.9398 MB / 441.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008935/0.3082, allocations: 366.2 kB / 442 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004959/0.3087, allocations: 206.1 kB / 442.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.3087, allocations: 12.42 kB / 442.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.3088, allocations: 39 kB / 442.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.713e-06/0.3088, allocations: 0 / 442.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005473/0.3142, allocations: 1.917 MB / 444.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.3143, allocations: 81.61 kB / 444.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003681/0.3147, allocations: 276.9 kB / 444.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.3147, allocations: 37.7 kB / 444.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.3148, allocations: 137.2 kB / 444.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.315, allocations: 186.4 kB / 444.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.3151, allocations: 102.2 kB / 445 MB, free: 10.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.3153, allocations: 342.8 kB / 445.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004632/0.3158, allocations: 196.8 kB / 445.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005122/0.3163, allocations: 240 kB / 445.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008706/0.3172, allocations: 383.4 kB / 446.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3172, allocations: 0 / 446.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001332/0.3185, allocations: 0.6004 MB / 446.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.3185, allocations: 7.938 kB / 446.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.3185, allocations: 0 / 446.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008747/0.3194, allocations: 314.5 kB / 447 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.3197, allocations: 67.89 kB / 447.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004415/0.3241, allocations: 2.841 MB / 449.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.3244, allocations: 27.97 kB / 450 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.3245, allocations: 23.92 kB / 450 MB, free: 4.902 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002242/0.3247, allocations: 155.6 kB / 450.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.623e-05/0.3248, allocations: 35.75 kB / 450.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.3249, allocations: 55.61 kB / 450.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.3249, allocations: 7.938 kB / 450.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3249, allocations: 0 / 450.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.325, allocations: 3.984 kB / 450.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/0.3275, allocations: 1.246 MB / 451.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3275, allocations: 0 / 451.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003381/0.3278, allocations: 75.88 kB / 451.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007567/0.3286, allocations: 288.6 kB / 451.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.3286, allocations: 19.98 kB / 451.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00395/0.3326, allocations: 2.759 MB / 454.6 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3326, allocations: 0 / 454.6 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.3345, allocations: 0.9292 MB / 455.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.3347, allocations: 91.81 kB / 455.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.3347, allocations: 15.94 kB / 455.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.335, allocations: 27.97 kB / 455.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.3352, allocations: 72.3 kB / 455.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.913e-05/0.3352, allocations: 23.92 kB / 455.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002615/0.3355, allocations: 204.5 kB / 456 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3355, allocations: 0 / 456 MB, free: 14.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006362/0.3361, allocations: 151.9 kB / 456.1 MB, free: 14.56 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: 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 (31): * Single equations (assignments): 30 * 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.001351/0.3375, allocations: 384.5 kB / 456.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.3389, allocations: 0.6635 MB / 457.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3389, allocations: 0 / 457.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008498/0.3398, allocations: 468.1 kB / 457.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.3402, allocations: 44.41 kB / 457.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.3419, allocations: 0.8532 MB / 458.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.3424, allocations: 0.8007 MB / 459.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3425, allocations: 47.34 kB / 459.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of SimCode: time 5.42e-07/0.3425, allocations: 0 / 459.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of Templates: time 0.01042/0.3529, allocations: 6.745 MB / 466.1 MB, free: 4.617 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.809460201999173]