Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.006093/0.006093, allocations: 111.2 kB / 21.98 MB, free: 5.18 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.001632/0.001632, allocations: 218.2 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 230.5 MB / 259 MB, free: 8.027 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-beta.om/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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 64.14 kB / 379.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2676, allocations: 53.36 MB / 433.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004333/0.2719, allocations: 2.566 MB / 435.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.2741, allocations: 1.158 MB / 436.9 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.2742, allocations: 7.938 kB / 436.9 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.2746, allocations: 63.44 kB / 436.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005313/0.2751, allocations: 187.2 kB / 437.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004421/0.2755, allocations: 175.6 kB / 437.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006009/0.2761, allocations: 0.518 MB / 437.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.2763, allocations: 62.08 kB / 437.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003916/0.2767, allocations: 247.3 kB / 438.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003839/0.2771, allocations: 279.2 kB / 438.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.008e-05/0.2772, allocations: 40 kB / 438.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002705/0.2775, allocations: 147.9 kB / 438.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.2776, allocations: 107.7 kB / 438.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.2778, allocations: 207 kB / 438.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006857/0.2785, allocations: 0.5461 MB / 439.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2785, allocations: 0 / 439.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2785, allocations: 4 kB / 439.4 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.2785, allocations: 3.938 kB / 439.4 MB, free: 0.6719 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.001361/0.2799, allocations: 0.6375 MB / 440.1 MB, free: 4 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.2799, allocations: 8.078 kB / 440.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004004/0.2803, allocations: 64.62 kB / 440.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005635/0.2809, allocations: 262.5 kB / 440.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.281, allocations: 92.61 kB / 440.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.39e-05/0.2811, allocations: 36.33 kB / 440.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008643/0.282, allocations: 425 kB / 440.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.282, allocations: 0 / 440.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.681e-05/0.282, allocations: 12 kB / 441 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.282, allocations: 12 kB / 441 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.2831, allocations: 470.3 kB / 441.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.285, allocations: 0.932 MB / 442.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/0.2859, allocations: 364.6 kB / 442.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/0.2864, allocations: 218 kB / 442.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.886e-05/0.2865, allocations: 12.42 kB / 442.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.2865, allocations: 35 kB / 443 MB, free: 13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.2865, allocations: 0 / 443 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005611/0.2921, allocations: 1.917 MB / 444.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.2922, allocations: 85.61 kB / 445 MB, free: 10.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.2926, allocations: 272.9 kB / 445.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.362e-05/0.2926, allocations: 41.69 kB / 445.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.2927, allocations: 133.2 kB / 445.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.2929, allocations: 202.4 kB / 445.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.2931, allocations: 90.17 kB / 445.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2933, allocations: 338.8 kB / 446 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004893/0.2937, allocations: 192.9 kB / 446.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005286/0.2943, allocations: 243.9 kB / 446.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009132/0.2952, allocations: 383.4 kB / 446.8 MB, free: 9.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.2952, allocations: 4 kB / 446.8 MB, free: 9.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001369/0.2966, allocations: 0.5965 MB / 447.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.2966, allocations: 7.938 kB / 447.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.2966, allocations: 4 kB / 447.4 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008655/0.2975, allocations: 306.5 kB / 447.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.2978, allocations: 67.89 kB / 447.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004294/0.3021, allocations: 2.842 MB / 450.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.3024, allocations: 27.97 kB / 450.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/0.3025, allocations: 27.92 kB / 450.7 MB, free: 5.016 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.0002301/0.3027, allocations: 153.9 kB / 450.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.623e-05/0.3028, allocations: 39.69 kB / 450.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.3029, allocations: 51.61 kB / 450.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3029, allocations: 4 kB / 450.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3029, allocations: 0 / 450.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.3029, allocations: 7.984 kB / 451 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.3054, allocations: 1.249 MB / 452.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.3054, allocations: 0 / 452.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.3057, allocations: 71.88 kB / 452.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007805/0.3065, allocations: 292.6 kB / 452.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.58e-05/0.3066, allocations: 15.98 kB / 452.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004052/0.3106, allocations: 2.756 MB / 455.3 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3106, allocations: 0 / 455.3 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.3126, allocations: 0.941 MB / 456.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.3129, allocations: 79.77 kB / 456.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.3129, allocations: 15.94 kB / 456.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.3132, allocations: 23.97 kB / 456.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.3134, allocations: 84.22 kB / 456.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.3135, allocations: 19.98 kB / 456.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002785/0.3138, allocations: 196.5 kB / 456.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3138, allocations: 3.938 kB / 456.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006889/0.3145, allocations: 156 kB / 456.8 MB, free: 14.68 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.001413/0.3159, allocations: 376.9 kB / 457.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.3174, allocations: 0.6635 MB / 457.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3174, allocations: 0 / 457.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008669/0.3183, allocations: 468.1 kB / 458.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.3188, allocations: 50.67 kB / 458.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.3204, allocations: 0.8416 MB / 459.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.3209, allocations: 0.7968 MB / 460 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3211, allocations: 51.39 kB / 460.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3211, allocations: 0 / 460.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of Templates: time 0.01103/0.3321, allocations: 6.735 MB / 466.8 MB, free: 4.754 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.143641812959686]