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.008349/0.008349, allocations: 109.7 kB / 21.98 MB, free: 5.203 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.002167/0.002167, allocations: 212.2 kB / 25.29 MB, free: 3.199 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.486/1.486, allocations: 230.6 MB / 259 MB, free: 8.055 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.001979/0.001979, allocations: 55.91 kB / 379.8 MB, free: 2.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.266, allocations: 53.37 MB / 433.2 MB, free: 7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004183/0.2702, allocations: 2.479 MB / 435.6 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.2722, allocations: 1.076 MB / 436.7 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.2724, allocations: 4 kB / 436.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003046/0.2727, allocations: 71.38 kB / 436.8 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004362/0.2731, allocations: 148.8 kB / 436.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.2735, allocations: 167.1 kB / 437.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005275/0.274, allocations: 474.7 kB / 437.6 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.2742, allocations: 44.92 kB / 437.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.2744, allocations: 203.5 kB / 437.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.2748, allocations: 255.2 kB / 438 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.623e-05/0.2749, allocations: 36 kB / 438.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.2751, allocations: 131.9 kB / 438.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.2753, allocations: 111.7 kB / 438.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.2755, allocations: 175.2 kB / 438.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006238/0.2761, allocations: 0.4916 MB / 439 MB, free: 1.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2761, allocations: 0 / 439 MB, free: 1.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2761, allocations: 3.938 kB / 439 MB, free: 1.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2761, allocations: 4 kB / 439 MB, free: 1.152 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.001253/0.2774, allocations: 0.5868 MB / 439.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2774, allocations: 8.031 kB / 439.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003181/0.2777, allocations: 60.69 kB / 439.6 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.2783, allocations: 251.5 kB / 439.9 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.2784, allocations: 96.59 kB / 440 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.198e-05/0.2785, allocations: 28.38 kB / 440 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007775/0.2793, allocations: 382.9 kB / 440.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.2793, allocations: 0 / 440.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.2793, allocations: 12 kB / 440.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.2793, allocations: 8 kB / 440.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009029/0.2802, allocations: 422.2 kB / 440.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.2825, allocations: 1.208 MB / 442 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000718/0.2832, allocations: 320 kB / 442.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/0.2836, allocations: 172.7 kB / 442.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.2836, allocations: 12.14 kB / 442.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.2837, allocations: 39.27 kB / 442.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.783e-06/0.2837, allocations: 0 / 442.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005011/0.2887, allocations: 1.667 MB / 444.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.2887, allocations: 84.86 kB / 444.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.2891, allocations: 246.8 kB / 444.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/0.2891, allocations: 33.7 kB / 444.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.2892, allocations: 140.8 kB / 444.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.2894, allocations: 158.7 kB / 444.9 MB, free: 11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.2895, allocations: 90.06 kB / 445 MB, free: 10.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.2897, allocations: 338.8 kB / 445.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003912/0.2901, allocations: 164.8 kB / 445.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004492/0.2906, allocations: 225.9 kB / 445.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/0.2913, allocations: 335.2 kB / 446 MB, free: 9.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2913, allocations: 0 / 446 MB, free: 9.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001237/0.2925, allocations: 0.5397 MB / 446.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2926, allocations: 4 kB / 446.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.2926, allocations: 4 kB / 446.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008444/0.2934, allocations: 304.5 kB / 446.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.2937, allocations: 55.89 kB / 446.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004249/0.2979, allocations: 2.794 MB / 449.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.2982, allocations: 27.97 kB / 449.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.723e-05/0.2982, allocations: 19.98 kB / 449.7 MB, free: 5.965 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.0002079/0.2984, allocations: 154.2 kB / 449.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.414e-05/0.2985, allocations: 27.81 kB / 449.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.2986, allocations: 42.98 kB / 450 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.2986, allocations: 8 kB / 450 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2986, allocations: 4.062 kB / 450 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.2987, allocations: 3.984 kB / 450 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.3007, allocations: 1.077 MB / 451.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.3007, allocations: 0 / 451.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/0.301, allocations: 43.91 kB / 451.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000756/0.3017, allocations: 292.6 kB / 451.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.3018, allocations: 15.98 kB / 451.4 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004108/0.3059, allocations: 2.742 MB / 454.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3059, allocations: 0 / 454.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.3076, allocations: 0.7923 MB / 454.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.3077, allocations: 75.86 kB / 455 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/0.3078, allocations: 7.938 kB / 455 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.3081, allocations: 31.91 kB / 455 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.3082, allocations: 63.88 kB / 455.1 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.3083, allocations: 19.98 kB / 455.1 MB, free: 392 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.3085, allocations: 184.5 kB / 455.3 MB, free: 208 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3085, allocations: 0 / 455.3 MB, free: 208 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006199/0.3091, allocations: 131.9 kB / 455.4 MB, free: 76 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.001378/0.3105, allocations: 381.8 kB / 455.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.3119, allocations: 0.5984 MB / 456.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3119, allocations: 0 / 456.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007786/0.3127, allocations: 417.8 kB / 456.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/0.3131, allocations: 47.64 kB / 456.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.3146, allocations: 0.7432 MB / 457.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.315, allocations: 0.7801 MB / 458.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.3152, allocations: 39.41 kB / 458.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3152, allocations: 8 kB / 458.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of Templates: time 0.00993/0.3251, allocations: 5.95 MB / 464.4 MB, free: 7.172 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/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: 8.080919690197334]