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.001545/0.001545, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001707/0.001707, allocations: 213.1 kB / 24.48 MB, free: 3.957 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.455/1.455, allocations: 230.6 MB / 258.2 MB, free: 7.746 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.001593/0.001593, allocations: 39.94 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2827, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004288/0.287, allocations: 2.4 MB / 434.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.2891, allocations: 1.092 MB / 435.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.2893, allocations: 7.938 kB / 435.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003125/0.2896, allocations: 63.44 kB / 435.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000544/0.2901, allocations: 183.1 kB / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004577/0.2906, allocations: 187.6 kB / 436.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006623/0.2912, allocations: 0.5141 MB / 436.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.2914, allocations: 68.08 kB / 436.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004041/0.2918, allocations: 239.3 kB / 437.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004085/0.2922, allocations: 279.2 kB / 437.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.539e-05/0.2923, allocations: 44 kB / 437.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.2926, allocations: 139.9 kB / 437.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.2928, allocations: 115.7 kB / 437.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002055/0.293, allocations: 175.2 kB / 437.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007281/0.2937, allocations: 0.5486 MB / 438.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2937, allocations: 0 / 438.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2937, allocations: 0 / 438.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2937, allocations: 0 / 438.3 MB, free: 0.6602 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.001457/0.2952, allocations: 0.6414 MB / 439 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2952, allocations: 12.03 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004372/0.2957, allocations: 64.67 kB / 439.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005891/0.2962, allocations: 263.1 kB / 439.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.2964, allocations: 140 kB / 439.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.305e-05/0.2965, allocations: 36.33 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000906/0.2974, allocations: 450.7 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.2974, allocations: 3.984 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.2975, allocations: 12 kB / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.2975, allocations: 8 kB / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.2986, allocations: 462.3 kB / 440.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.3004, allocations: 0.7884 MB / 441.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009036/0.3013, allocations: 376.3 kB / 441.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004832/0.3018, allocations: 210 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.3018, allocations: 8.375 kB / 441.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.3019, allocations: 39 kB / 441.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.415e-06/0.3019, allocations: 0 / 441.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005642/0.3075, allocations: 1.913 MB / 443.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.3076, allocations: 85.61 kB / 443.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.3079, allocations: 247.8 kB / 444.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.09e-05/0.308, allocations: 37.7 kB / 444.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.3081, allocations: 145.1 kB / 444.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.3083, allocations: 194.3 kB / 444.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.3085, allocations: 94.16 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3087, allocations: 342.8 kB / 444.8 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.3091, allocations: 192.8 kB / 445 MB, free: 9.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/0.3097, allocations: 269.7 kB / 445.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008866/0.3105, allocations: 383.4 kB / 445.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3105, allocations: 0 / 445.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001386/0.3119, allocations: 0.6004 MB / 446.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.312, allocations: 11.98 kB / 446.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.312, allocations: 0 / 446.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008979/0.3129, allocations: 298.5 kB / 446.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.3132, allocations: 71.88 kB / 446.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004288/0.3175, allocations: 2.771 MB / 449.4 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003347/0.3178, allocations: 32 kB / 449.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.458e-05/0.3179, allocations: 16 kB / 449.5 MB, free: 5.152 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.0002329/0.3181, allocations: 153.8 kB / 449.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.3182, allocations: 39.7 kB / 449.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.3183, allocations: 47.36 kB / 449.7 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3184, allocations: 12 kB / 449.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3184, allocations: 3.938 kB / 449.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3184, allocations: 3.984 kB / 449.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.3208, allocations: 1.125 MB / 450.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3208, allocations: 0 / 450.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.3211, allocations: 71.91 kB / 450.9 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008021/0.3219, allocations: 284.6 kB / 451.2 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.457e-05/0.322, allocations: 15.98 kB / 451.2 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004103/0.3261, allocations: 2.681 MB / 453.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3261, allocations: 0 / 453.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.3281, allocations: 0.9409 MB / 454.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.3284, allocations: 83.75 kB / 454.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.358e-05/0.3284, allocations: 15.94 kB / 454.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.3288, allocations: 27.97 kB / 455 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.329, allocations: 72.3 kB / 455 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.613e-05/0.329, allocations: 23.92 kB / 455 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000268/0.3293, allocations: 193.5 kB / 455.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3293, allocations: 4 kB / 455.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006902/0.33, allocations: 155.9 kB / 455.4 MB, free: 15.05 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.001525/0.3315, allocations: 410.8 kB / 455.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.3331, allocations: 0.6635 MB / 456.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3331, allocations: 0 / 456.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008952/0.334, allocations: 460.2 kB / 456.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.3345, allocations: 48.14 kB / 457 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.3362, allocations: 0.8493 MB / 457.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.3364, allocations: 194.8 kB / 458 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.3366, allocations: 43.41 kB / 458 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3366, allocations: 0 / 458 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Templates: time 0.01134/0.348, allocations: 6.791 MB / 464.8 MB, free: 5.68 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: 8.044060167012503]