Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 121.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 199.8 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 55.91 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2988, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004416/0.3032, allocations: 2.539 MB / 411.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.3053, allocations: 1.127 MB / 412.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.3054, allocations: 4 kB / 412.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.3058, allocations: 75.36 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005082/0.3063, allocations: 170 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003945/0.3067, allocations: 183.6 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000568/0.3073, allocations: 0.5141 MB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.3075, allocations: 92.91 kB / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004038/0.3079, allocations: 239.4 kB / 414.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.3082, allocations: 275.1 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.206e-05/0.3083, allocations: 44 kB / 414.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000227/0.3085, allocations: 131.9 kB / 414.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.3087, allocations: 123.6 kB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.3089, allocations: 195.1 kB / 414.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005746/0.3094, allocations: 0.5464 MB / 415.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3095, allocations: 0 / 415.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3095, allocations: 4 kB / 415.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.3095, allocations: 0 / 415.5 MB, free: 11.36 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.001366/0.3109, allocations: 0.7016 MB / 416.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3109, allocations: 12.03 kB / 416.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004097/0.3113, allocations: 60.44 kB / 416.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.3118, allocations: 323.5 kB / 416.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.312, allocations: 92.61 kB / 416.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.312, allocations: 32.38 kB / 416.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008445/0.3129, allocations: 421 kB / 417.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.3129, allocations: 11.91 kB / 417.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.156e-05/0.313, allocations: 8 kB / 417.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.313, allocations: 8 kB / 417.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.3141, allocations: 466.3 kB / 417.6 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.316, allocations: 0.9929 MB / 418.6 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008779/0.3169, allocations: 404.4 kB / 419 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004821/0.3174, allocations: 226.1 kB / 419.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.3174, allocations: 12.36 kB / 419.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.3175, allocations: 39 kB / 419.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.653e-06/0.3175, allocations: 0 / 419.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005386/0.3229, allocations: 2.152 MB / 421.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.3229, allocations: 85.67 kB / 421.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/0.3233, allocations: 273 kB / 421.7 MB, free: 4.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.582e-05/0.3233, allocations: 37.7 kB / 421.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.023e-05/0.3234, allocations: 145 kB / 421.9 MB, free: 4.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.3236, allocations: 173.5 kB / 422.1 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.3237, allocations: 94.14 kB / 422.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3239, allocations: 338.8 kB / 422.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004448/0.3243, allocations: 197 kB / 422.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.3248, allocations: 244.6 kB / 422.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008245/0.3257, allocations: 384.3 kB / 423.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3257, allocations: 3.938 kB / 423.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001267/0.3269, allocations: 0.6096 MB / 423.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.327, allocations: 10.91 kB / 423.9 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.327, allocations: 0 / 423.9 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000795/0.3278, allocations: 298.5 kB / 424.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.3281, allocations: 71.88 kB / 424.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003963/0.3321, allocations: 2.958 MB / 427.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003076/0.3324, allocations: 27.97 kB / 427.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/0.3325, allocations: 16 kB / 427.3 MB, free: 15.01 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.0001962/0.3327, allocations: 165.2 kB / 427.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.473e-05/0.3328, allocations: 35.56 kB / 427.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.3329, allocations: 59.55 kB / 427.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3329, allocations: 4 kB / 427.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.3329, allocations: 4.062 kB / 427.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3329, allocations: 0 / 427.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.3352, allocations: 1.293 MB / 428.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3352, allocations: 0 / 428.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003356/0.3355, allocations: 67.97 kB / 428.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006978/0.3362, allocations: 288.5 kB / 429.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.15e-05/0.3363, allocations: 19.98 kB / 429.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003674/0.34, allocations: 2.842 MB / 432.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.34, allocations: 4.031 kB / 432.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.3418, allocations: 0.9466 MB / 433 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.342, allocations: 160.7 kB / 433.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.105e-05/0.3421, allocations: 19.94 kB / 433.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.3424, allocations: 27.97 kB / 433.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.3426, allocations: 72.39 kB / 433.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.3426, allocations: 19.98 kB / 433.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002383/0.3429, allocations: 208.4 kB / 433.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.616e-06/0.3429, allocations: 0 / 433.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006047/0.3435, allocations: 155.9 kB / 433.7 MB, free: 8.398 MB / 350.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.0009055/0.3444, allocations: 366.7 kB / 434 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.3459, allocations: 0.6955 MB / 434.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/0.3459, allocations: 0 / 434.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008566/0.3468, allocations: 483.6 kB / 435.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/0.3472, allocations: 47.91 kB / 435.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.3487, allocations: 0.8052 MB / 436 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.3491, allocations: 0.7968 MB / 436.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002526/0.3494, allocations: 86.88 kB / 436.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.3495, allocations: 39.41 kB / 437 MB, free: 5.121 MB / 350.1 MB Notification: Performance of SimCode: time 1.814e-06/0.3495, allocations: 0 / 437 MB, free: 5.121 MB / 350.1 MB Notification: Performance of Templates: time 0.01377/0.3633, allocations: 8.338 MB / 445.3 MB, free: 12.8 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches