Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.00126/0.00126, allocations: 105.4 kB / 19.81 MB, free: 2.516 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.001385/0.001385, allocations: 217.4 kB / 23 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 230.2 MB / 256.2 MB, free: 8.559 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 60.05 kB / 376.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.266, allocations: 53.34 MB / 429.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00422/0.2702, allocations: 2.474 MB / 432.3 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.2725, allocations: 1.073 MB / 433.3 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.2726, allocations: 7.938 kB / 433.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002458/0.2728, allocations: 67.48 kB / 433.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000373/0.2732, allocations: 144 kB / 433.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.2736, allocations: 159.7 kB / 433.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005014/0.2741, allocations: 474.7 kB / 434.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.2742, allocations: 44.72 kB / 434.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.2744, allocations: 207.5 kB / 434.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003038/0.2747, allocations: 247.2 kB / 434.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-05/0.2748, allocations: 40 kB / 434.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.275, allocations: 127.9 kB / 434.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.2751, allocations: 107.7 kB / 434.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.2752, allocations: 175.2 kB / 435.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005549/0.2758, allocations: 0.4955 MB / 435.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2758, allocations: 3.938 kB / 435.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.2758, allocations: 0 / 435.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2758, allocations: 0 / 435.6 MB, free: 1.715 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.001202/0.277, allocations: 0.6778 MB / 436.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.598e-05/0.277, allocations: 8.031 kB / 436.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003171/0.2774, allocations: 48.73 kB / 436.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.2778, allocations: 305.5 kB / 436.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.278, allocations: 92.52 kB / 436.7 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.2781, allocations: 24.38 kB / 436.7 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008289/0.279, allocations: 389.4 kB / 437.1 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.279, allocations: 3.953 kB / 437.1 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.59e-05/0.279, allocations: 12 kB / 437.1 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.279, allocations: 4 kB / 437.1 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008814/0.2799, allocations: 425.9 kB / 437.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.2822, allocations: 1.265 MB / 438.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.2832, allocations: 329.5 kB / 439.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003858/0.2836, allocations: 164.8 kB / 439.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.2836, allocations: 4 kB / 439.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.2837, allocations: 43.28 kB / 439.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.2837, allocations: 0 / 439.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005342/0.289, allocations: 1.894 MB / 441.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.192e-05/0.2891, allocations: 84.86 kB / 441.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.2895, allocations: 246.4 kB / 441.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.2895, allocations: 33.7 kB / 441.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.2896, allocations: 141 kB / 441.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.2898, allocations: 162.6 kB / 441.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.2899, allocations: 86.06 kB / 442 MB, free: 10.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2901, allocations: 342.8 kB / 442.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/0.2905, allocations: 164.8 kB / 442.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004688/0.2909, allocations: 221.9 kB / 442.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007227/0.2916, allocations: 343.1 kB / 443 MB, free: 9.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2916, allocations: 0 / 443 MB, free: 9.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001216/0.2929, allocations: 0.5358 MB / 443.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.2929, allocations: 4 kB / 443.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2929, allocations: 4 kB / 443.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008339/0.2937, allocations: 304.5 kB / 443.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.294, allocations: 51.95 kB / 443.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004359/0.2983, allocations: 2.896 MB / 446.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.2986, allocations: 28.05 kB / 446.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-05/0.2986, allocations: 15.98 kB / 446.9 MB, free: 5.887 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.0002697/0.2989, allocations: 161.5 kB / 447 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.901e-05/0.299, allocations: 35.75 kB / 447.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.617e-05/0.2991, allocations: 39 kB / 447.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.2991, allocations: 4 kB / 447.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.2991, allocations: 4 kB / 447.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2991, allocations: 3.984 kB / 447.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.3011, allocations: 1.101 MB / 448.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3012, allocations: 0 / 448.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.3014, allocations: 47.95 kB / 448.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007507/0.3021, allocations: 296.7 kB / 448.5 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.32e-05/0.3022, allocations: 11.98 kB / 448.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004203/0.3064, allocations: 2.843 MB / 451.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3064, allocations: 3.984 kB / 451.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.3081, allocations: 0.8004 MB / 452.2 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.3083, allocations: 145 kB / 452.3 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.172e-05/0.3083, allocations: 27.86 kB / 452.4 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.3086, allocations: 19.98 kB / 452.4 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.3088, allocations: 63.89 kB / 452.4 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.3088, allocations: 19.98 kB / 452.5 MB, free: 32 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002442/0.309, allocations: 180.8 kB / 452.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.309, allocations: 4 kB / 452.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005989/0.3096, allocations: 135.9 kB / 452.8 MB, free: 15.72 MB / 366.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.00132/0.311, allocations: 371.4 kB / 453.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.3124, allocations: 0.5939 MB / 453.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3124, allocations: 0 / 453.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007423/0.3131, allocations: 409.5 kB / 454.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.3135, allocations: 57 kB / 454.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.315, allocations: 0.7109 MB / 454.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.3154, allocations: 0.78 MB / 455.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002251/0.3157, allocations: 74.91 kB / 455.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.3158, allocations: 35.41 kB / 455.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3158, allocations: 0 / 455.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of Templates: time 0.01499/0.3308, allocations: 7.955 MB / 463.7 MB, free: 4.797 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.632118581794202]