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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00135/0.00135, allocations: 112.6 kB / 18.78 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 215.9 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 230.4 MB / 251.1 MB, free: 8.441 MB / 206.1 MB 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.001994/0.001994, allocations: 59.84 kB / 368.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3035, allocations: 53.31 MB / 422.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.006058/0.3096, allocations: 2.548 MB / 424.8 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.3126, allocations: 1.139 MB / 425.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001895/0.3127, allocations: 7.938 kB / 425.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000403/0.3131, allocations: 67.42 kB / 426 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000663/0.3138, allocations: 182.7 kB / 426.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005735/0.3144, allocations: 175.6 kB / 426.4 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008148/0.3152, allocations: 0.518 MB / 426.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.3154, allocations: 64.95 kB / 426.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004959/0.3159, allocations: 243.3 kB / 427.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/0.3164, allocations: 275.1 kB / 427.5 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.516e-05/0.3165, allocations: 40 kB / 427.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003807/0.3169, allocations: 143.9 kB / 427.6 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.3171, allocations: 115.7 kB / 427.7 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.3174, allocations: 199.1 kB / 427.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009541/0.3183, allocations: 0.5483 MB / 428.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3183, allocations: 0 / 428.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3183, allocations: 0 / 428.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.3183, allocations: 0 / 428.5 MB, free: 1.59 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.002028/0.3204, allocations: 0.7165 MB / 429.2 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.3204, allocations: 12.03 kB / 429.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000608/0.321, allocations: 64.67 kB / 429.3 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007747/0.3218, allocations: 311.8 kB / 429.6 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.322, allocations: 92.61 kB / 429.7 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.3221, allocations: 40.31 kB / 429.7 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3234, allocations: 425 kB / 430.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.3234, allocations: 0 / 430.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.856e-05/0.3235, allocations: 12 kB / 430.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.3235, allocations: 8 kB / 430.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.3252, allocations: 474.2 kB / 430.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/0.3279, allocations: 0.997 MB / 431.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.3293, allocations: 368.7 kB / 432 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007521/0.3301, allocations: 217.9 kB / 432.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.905e-05/0.3301, allocations: 8.438 kB / 432.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.776e-05/0.3302, allocations: 38.98 kB / 432.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.604e-06/0.3302, allocations: 0 / 432.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.008869/0.339, allocations: 2.141 MB / 434.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.784e-05/0.3391, allocations: 81.67 kB / 434.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005872/0.3397, allocations: 273 kB / 434.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.952e-05/0.3398, allocations: 41.7 kB / 434.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.34, allocations: 141.2 kB / 434.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/0.3402, allocations: 190.4 kB / 435.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000265/0.3405, allocations: 94.23 kB / 435.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002388/0.3407, allocations: 346.8 kB / 435.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007158/0.3414, allocations: 189 kB / 435.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000786/0.3422, allocations: 248.6 kB / 435.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.3435, allocations: 376.4 kB / 436.3 MB, free: 9.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3436, allocations: 4 kB / 436.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002104/0.3457, allocations: 0.6019 MB / 436.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.3457, allocations: 15.95 kB / 436.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.3457, allocations: 0 / 436.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.3469, allocations: 298.6 kB / 437.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.3474, allocations: 71.88 kB / 437.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006419/0.3538, allocations: 2.939 MB / 440.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/0.3544, allocations: 36.06 kB / 440.3 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-05/0.3544, allocations: 19.98 kB / 440.3 MB, free: 5.281 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.0003317/0.3548, allocations: 156.4 kB / 440.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3549, allocations: 35.75 kB / 440.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.3551, allocations: 55.55 kB / 440.5 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.3551, allocations: 8 kB / 440.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3551, allocations: 0 / 440.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3551, allocations: 3.984 kB / 440.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/0.3587, allocations: 1.282 MB / 441.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.3588, allocations: 3.984 kB / 441.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.3593, allocations: 71.89 kB / 441.9 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.3605, allocations: 292.6 kB / 442.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.607e-05/0.3605, allocations: 15.98 kB / 442.2 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006351/0.3669, allocations: 2.851 MB / 445 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3669, allocations: 0 / 445 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003121/0.37, allocations: 0.9351 MB / 446 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003168/0.3703, allocations: 156.9 kB / 446.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.3705, allocations: 15.94 kB / 446.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000533/0.371, allocations: 31.97 kB / 446.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002929/0.3713, allocations: 72.27 kB / 446.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-05/0.3714, allocations: 23.92 kB / 446.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004637/0.3718, allocations: 208.5 kB / 446.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3718, allocations: 0 / 446.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001219/0.373, allocations: 155.9 kB / 446.6 MB, free: 14.69 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.002003/0.375, allocations: 377 kB / 447 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.3772, allocations: 0.6642 MB / 447.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.3772, allocations: 4 kB / 447.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.3785, allocations: 459.7 kB / 448.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007163/0.3792, allocations: 49.44 kB / 448.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002439/0.3816, allocations: 0.8194 MB / 449 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006386/0.3823, allocations: 0.7968 MB / 449.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003899/0.3827, allocations: 74.92 kB / 449.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.3829, allocations: 39.41 kB / 449.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3829, allocations: 0 / 449.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of Templates: time 0.0248/0.4077, allocations: 8.596 MB / 458.5 MB, free: 2.883 MB / 366.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/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] Reference file matches