Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001804/0.001804, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.00249/0.00249, allocations: 212 kB / 24.54 MB, free: 4.016 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.527/1.527, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [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.002254/0.002254, allocations: 64.78 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2861, allocations: 53.39 MB / 432.4 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004234/0.2904, allocations: 2.47 MB / 434.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.2926, allocations: 1.076 MB / 436 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.2927, allocations: 4 kB / 436 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.2931, allocations: 67.48 kB / 436 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.2935, allocations: 152.8 kB / 436.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004041/0.2939, allocations: 155.7 kB / 436.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.2945, allocations: 478.7 kB / 436.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.2946, allocations: 48.91 kB / 436.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.2949, allocations: 207.5 kB / 437 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003738/0.2953, allocations: 251.2 kB / 437.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.275e-05/0.2953, allocations: 36 kB / 437.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.2956, allocations: 131.9 kB / 437.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.2958, allocations: 107.7 kB / 437.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.296, allocations: 175.2 kB / 437.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006736/0.2966, allocations: 0.4921 MB / 438.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2966, allocations: 3.938 kB / 438.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2966, allocations: 3.938 kB / 438.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.2966, allocations: 0 / 438.2 MB, free: 1.133 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.001318/0.298, allocations: 0.5946 MB / 438.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.298, allocations: 8.031 kB / 438.8 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003343/0.2983, allocations: 56.67 kB / 438.9 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005951/0.2989, allocations: 255.6 kB / 439.1 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.2991, allocations: 84.61 kB / 439.2 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.166e-05/0.2991, allocations: 28.38 kB / 439.2 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00085/0.3, allocations: 386.8 kB / 439.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.3, allocations: 0 / 439.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.3001, allocations: 16 kB / 439.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.3001, allocations: 7.984 kB / 439.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000891/0.301, allocations: 418.2 kB / 440.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.3032, allocations: 1.208 MB / 441.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007382/0.3039, allocations: 319.2 kB / 441.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/0.3043, allocations: 176.7 kB / 441.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.3043, allocations: 4 kB / 441.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.3044, allocations: 39.22 kB / 441.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.923e-06/0.3044, allocations: 0 / 441.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005043/0.3094, allocations: 1.671 MB / 443.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.992e-05/0.3095, allocations: 84.86 kB / 443.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000391/0.3099, allocations: 246.8 kB / 443.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.3099, allocations: 37.7 kB / 443.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.3101, allocations: 140.8 kB / 444 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.3102, allocations: 162.7 kB / 444.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.3104, allocations: 86.06 kB / 444.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3105, allocations: 338.8 kB / 444.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.3109, allocations: 160.8 kB / 444.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004827/0.3114, allocations: 221.9 kB / 444.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007676/0.3122, allocations: 339.2 kB / 445.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.3122, allocations: 0 / 445.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001234/0.3134, allocations: 0.5435 MB / 445.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.3134, allocations: 4 kB / 445.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3135, allocations: 4 kB / 445.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008395/0.3143, allocations: 296.7 kB / 446.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.3145, allocations: 55.91 kB / 446.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004297/0.3188, allocations: 2.792 MB / 448.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.3191, allocations: 31.97 kB / 449 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.309e-05/0.3192, allocations: 12 kB / 449 MB, free: 5.953 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.0002687/0.3194, allocations: 159.8 kB / 449.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.444e-05/0.3195, allocations: 31.81 kB / 449.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.85e-05/0.3196, allocations: 50.98 kB / 449.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3196, allocations: 7.938 kB / 449.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3196, allocations: 0 / 449.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3196, allocations: 0 / 449.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.3216, allocations: 1.077 MB / 450.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3216, allocations: 0 / 450.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.3219, allocations: 43.97 kB / 450.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007612/0.3226, allocations: 288.7 kB / 450.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.3227, allocations: 11.98 kB / 450.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004196/0.3269, allocations: 2.744 MB / 453.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3269, allocations: 0 / 453.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.3285, allocations: 0.7923 MB / 454.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.3287, allocations: 75.7 kB / 454.2 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.9e-05/0.3288, allocations: 15.94 kB / 454.3 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.329, allocations: 27.97 kB / 454.3 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.3292, allocations: 63.88 kB / 454.3 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.3293, allocations: 15.98 kB / 454.4 MB, free: 376 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002441/0.3295, allocations: 176.5 kB / 454.5 MB, free: 200 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3295, allocations: 4 kB / 454.5 MB, free: 196 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006228/0.3301, allocations: 144 kB / 454.7 MB, free: 52 kB / 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.001372/0.3315, allocations: 382.4 kB / 455 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3328, allocations: 0.5945 MB / 455.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3328, allocations: 0 / 455.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007705/0.3336, allocations: 421.8 kB / 456.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.334, allocations: 47.45 kB / 456.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.3355, allocations: 0.7181 MB / 456.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.3359, allocations: 0.7723 MB / 457.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002281/0.3361, allocations: 82.89 kB / 457.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.3362, allocations: 31.42 kB / 457.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.3362, allocations: 0 / 457.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of Templates: time 0.0145/0.3507, allocations: 8.071 MB / 465.8 MB, free: 5.016 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.815908600576222]