Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002211/0.002211, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 225.7 MB / 252.5 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 43.92 kB / 370.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2527, allocations: 52.18 MB / 423.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003925/0.2567, allocations: 2.243 MB / 425.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.2583, allocations: 0.8781 MB / 426.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.2584, allocations: 4 kB / 426.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.2587, allocations: 51.52 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000468/0.2591, allocations: 135.2 kB / 426.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003861/0.2595, allocations: 171.7 kB / 426.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.26, allocations: 418.7 kB / 426.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.2601, allocations: 52.84 kB / 427 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.2603, allocations: 183.5 kB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003196/0.2606, allocations: 211.2 kB / 427.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.121e-05/0.2607, allocations: 32 kB / 427.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.2609, allocations: 111.9 kB / 427.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.2611, allocations: 103.7 kB / 427.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.2612, allocations: 139.4 kB / 427.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005669/0.2618, allocations: 455.5 kB / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2618, allocations: 0 / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2618, allocations: 0 / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.2618, allocations: 0 / 428.2 MB, free: 9.348 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001217/0.263, allocations: 0.5744 MB / 428.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2631, allocations: 8.031 kB / 428.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003051/0.2634, allocations: 48.73 kB / 428.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005189/0.2639, allocations: 242 kB / 429.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.2641, allocations: 144 kB / 429.2 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.2641, allocations: 24.38 kB / 429.2 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000737/0.2649, allocations: 404.5 kB / 429.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.2649, allocations: 11.94 kB / 429.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.717e-05/0.2649, allocations: 16 kB / 429.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.2649, allocations: 8 kB / 429.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008473/0.2658, allocations: 406.3 kB / 430.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.2679, allocations: 1.072 MB / 431.1 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006752/0.2685, allocations: 326.5 kB / 431.4 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.2689, allocations: 168.8 kB / 431.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.2689, allocations: 4 kB / 431.6 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.269, allocations: 38.56 kB / 431.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.774e-06/0.269, allocations: 0 / 431.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004696/0.2737, allocations: 1.693 MB / 433.3 MB, free: 3.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.2737, allocations: 84.86 kB / 433.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003093/0.274, allocations: 247.1 kB / 433.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.717e-05/0.2741, allocations: 41.69 kB / 433.7 MB, free: 3.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.2742, allocations: 128.9 kB / 433.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.2743, allocations: 162.6 kB / 434 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.2745, allocations: 86.08 kB / 434.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002129/0.2747, allocations: 334.8 kB / 434.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003864/0.2751, allocations: 168.8 kB / 434.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004432/0.2755, allocations: 263.5 kB / 434.8 MB, free: 2.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007043/0.2762, allocations: 347.1 kB / 435.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2762, allocations: 0 / 435.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001109/0.2773, allocations: 0.5435 MB / 435.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.2774, allocations: 11.98 kB / 435.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2774, allocations: 3.938 kB / 435.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007296/0.2781, allocations: 244.8 kB / 436 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/0.2783, allocations: 51.91 kB / 436 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.2825, allocations: 2.717 MB / 438.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.2827, allocations: 27.97 kB / 438.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.2828, allocations: 12 kB / 438.8 MB, free: 14.34 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.0002044/0.283, allocations: 165.8 kB / 438.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.448e-05/0.283, allocations: 27.81 kB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.2831, allocations: 42.98 kB / 439 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.2831, allocations: 4 kB / 439 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.2831, allocations: 0 / 439 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2832, allocations: 3.984 kB / 439 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.285, allocations: 0.9493 MB / 440 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.285, allocations: 4 kB / 440 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.2852, allocations: 43.91 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006613/0.2859, allocations: 236.9 kB / 440.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.2859, allocations: 15.98 kB / 440.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003881/0.2898, allocations: 2.664 MB / 442.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/0.2898, allocations: 8.047 kB / 442.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00162/0.2914, allocations: 0.8156 MB / 443.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001782/0.2916, allocations: 63.8 kB / 443.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/0.2917, allocations: 12 kB / 443.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.2919, allocations: 19.97 kB / 443.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.2921, allocations: 63.88 kB / 443.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.2921, allocations: 23.92 kB / 443.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.2924, allocations: 176.4 kB / 444.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2924, allocations: 4.062 kB / 444.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006114/0.293, allocations: 135.9 kB / 444.2 MB, free: 8.711 MB / 350.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.0002571/0.2932, allocations: 139.1 kB / 444.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.2946, allocations: 0.6058 MB / 445 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2946, allocations: 0 / 445 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007524/0.2953, allocations: 409.8 kB / 445.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.2957, allocations: 31.94 kB / 445.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.2972, allocations: 0.7138 MB / 446.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.2973, allocations: 171.8 kB / 446.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.2975, allocations: 54.94 kB / 446.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.629e-05/0.2976, allocations: 31.42 kB / 446.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.2976, allocations: 0 / 446.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of Templates: time 0.01307/0.3107, allocations: 6.768 MB / 453.1 MB, free: 15.78 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.864614753052592]