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.001905/0.001905, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002504/0.002504, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.556/1.556, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001564/0.001564, allocations: 47.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2415, allocations: 53.37 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004056/0.2456, allocations: 2.416 MB / 434 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.2477, allocations: 1.084 MB / 435.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.2478, allocations: 7.938 kB / 435.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.2481, allocations: 59.44 kB / 435.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005148/0.2486, allocations: 179.2 kB / 435.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.249, allocations: 179.6 kB / 435.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005866/0.2496, allocations: 0.5219 MB / 436 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.2498, allocations: 53.14 kB / 436.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003809/0.2502, allocations: 247.3 kB / 436.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.2505, allocations: 251.2 kB / 436.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.625e-05/0.2506, allocations: 47.94 kB / 436.6 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002768/0.2509, allocations: 131.9 kB / 436.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000144/0.251, allocations: 119.7 kB / 436.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.2512, allocations: 175.2 kB / 437 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006793/0.2519, allocations: 0.551 MB / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2519, allocations: 0 / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2519, allocations: 0 / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2519, allocations: 0 / 437.6 MB, free: 0.7305 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.001353/0.2533, allocations: 0.6336 MB / 438.2 MB, free: 68 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2533, allocations: 15.95 kB / 438.2 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004354/0.2538, allocations: 64.73 kB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/0.2543, allocations: 259.1 kB / 438.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.2545, allocations: 152 kB / 438.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-05/0.2546, allocations: 32.33 kB / 438.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009035/0.2555, allocations: 450.7 kB / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.2555, allocations: 4 kB / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.2556, allocations: 8 kB / 439.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.2556, allocations: 8 kB / 439.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.2566, allocations: 474.2 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.2584, allocations: 0.7884 MB / 440.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009156/0.2593, allocations: 369.1 kB / 440.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004911/0.2598, allocations: 206.1 kB / 441 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.2598, allocations: 12.44 kB / 441 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.2598, allocations: 35 kB / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.793e-06/0.2598, allocations: 0 / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005469/0.2653, allocations: 1.913 MB / 442.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.2654, allocations: 85.61 kB / 443 MB, free: 11.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.2657, allocations: 243.8 kB / 443.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.2658, allocations: 37.7 kB / 443.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.2659, allocations: 145.1 kB / 443.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.266, allocations: 194.3 kB / 443.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.2662, allocations: 94.17 kB / 443.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2664, allocations: 342.8 kB / 444.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004767/0.2668, allocations: 196.8 kB / 444.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005213/0.2673, allocations: 265.7 kB / 444.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008839/0.2682, allocations: 383.3 kB / 444.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2682, allocations: 0 / 444.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001334/0.2696, allocations: 0.6082 MB / 445.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.2696, allocations: 4 kB / 445.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2696, allocations: 0 / 445.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008173/0.2704, allocations: 306.5 kB / 445.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003286/0.2707, allocations: 71.88 kB / 445.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004079/0.2748, allocations: 2.769 MB / 448.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.2751, allocations: 27.97 kB / 448.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.2752, allocations: 16 kB / 448.7 MB, free: 5.223 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.0002021/0.2754, allocations: 153.9 kB / 448.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.436e-05/0.2755, allocations: 43.69 kB / 448.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.2756, allocations: 51.3 kB / 448.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2756, allocations: 16 kB / 448.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2756, allocations: 0 / 448.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2756, allocations: 3.938 kB / 448.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.2778, allocations: 1.117 MB / 450.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2778, allocations: 0 / 450.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003377/0.2782, allocations: 71.91 kB / 450.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007414/0.2789, allocations: 284.6 kB / 450.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.279, allocations: 15.98 kB / 450.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003807/0.2828, allocations: 2.689 MB / 453.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2828, allocations: 0 / 453.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.2847, allocations: 0.9525 MB / 454.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.2849, allocations: 83.69 kB / 454.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.593e-05/0.2849, allocations: 12 kB / 454.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.2853, allocations: 27.97 kB / 454.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.2854, allocations: 72.3 kB / 454.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/0.2855, allocations: 23.92 kB / 454.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002368/0.2857, allocations: 189.5 kB / 454.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2857, allocations: 4.062 kB / 454.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006192/0.2863, allocations: 151.9 kB / 454.6 MB, free: 15.11 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.001462/0.2878, allocations: 399.6 kB / 455 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.2892, allocations: 0.6635 MB / 455.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2892, allocations: 0 / 455.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008692/0.2901, allocations: 464.2 kB / 456.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.2906, allocations: 48.12 kB / 456.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.2922, allocations: 0.8319 MB / 457 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.2924, allocations: 194.8 kB / 457.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002607/0.2927, allocations: 74.91 kB / 457.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.2928, allocations: 35.41 kB / 457.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2928, allocations: 0 / 457.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of Templates: time 0.0149/0.3077, allocations: 7.816 MB / 465.1 MB, free: 4.719 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/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: 4.9092264994978905]