Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 111.6 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2775, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003661/0.2812, allocations: 2.439 MB / 403.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.2828, allocations: 0.9598 MB / 404.1 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.2829, allocations: 4 kB / 404.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.2831, allocations: 47.52 kB / 404.2 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004703/0.2836, allocations: 163 kB / 404.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.2839, allocations: 183.7 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004253/0.2844, allocations: 470.5 kB / 405 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.2846, allocations: 96.84 kB / 405.1 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.2848, allocations: 199.4 kB / 405.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.2851, allocations: 243.2 kB / 405.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.734e-05/0.2852, allocations: 40 kB / 405.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.2854, allocations: 135.8 kB / 405.7 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.2856, allocations: 103.7 kB / 405.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.2857, allocations: 191 kB / 405.9 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004667/0.2862, allocations: 491.6 kB / 406.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2862, allocations: 8 kB / 406.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2862, allocations: 0 / 406.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.2863, allocations: 0 / 406.4 MB, free: 3.113 MB / 318.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.001213/0.2875, allocations: 0.6744 MB / 407.1 MB, free: 2.391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.2875, allocations: 15.83 kB / 407.1 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000317/0.2878, allocations: 56.55 kB / 407.2 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004562/0.2883, allocations: 311.7 kB / 407.5 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.2884, allocations: 92.55 kB / 407.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.415e-05/0.2885, allocations: 36.28 kB / 407.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008556/0.2894, allocations: 417.1 kB / 408 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.2894, allocations: 3.938 kB / 408 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.2895, allocations: 12 kB / 408 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.2895, allocations: 8 kB / 408 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.2905, allocations: 470.2 kB / 408.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.2922, allocations: 0.9696 MB / 409.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008058/0.293, allocations: 412.9 kB / 409.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.2935, allocations: 230.1 kB / 410.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.2936, allocations: 4.438 kB / 410.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.2936, allocations: 42.98 kB / 410.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.624e-06/0.2936, allocations: 0 / 410.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005155/0.2988, allocations: 2.171 MB / 412.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.2988, allocations: 81.67 kB / 412.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.2991, allocations: 267.1 kB / 412.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.49e-05/0.2992, allocations: 41.64 kB / 412.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.025e-05/0.2993, allocations: 133.1 kB / 412.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.2994, allocations: 185.4 kB / 413 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.2996, allocations: 94.14 kB / 413.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2997, allocations: 338.8 kB / 413.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/0.3001, allocations: 193 kB / 413.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.3006, allocations: 252.6 kB / 413.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008392/0.3015, allocations: 384.4 kB / 414.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3015, allocations: 0 / 414.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001234/0.3028, allocations: 0.6174 MB / 414.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3028, allocations: 7.938 kB / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3028, allocations: 0 / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007241/0.3035, allocations: 254.5 kB / 415.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003107/0.3038, allocations: 67.89 kB / 415.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00381/0.3077, allocations: 2.944 MB / 418.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.308, allocations: 36.06 kB / 418.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.463e-05/0.308, allocations: 16 kB / 418.2 MB, free: 6.848 MB / 334.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.0001932/0.3082, allocations: 159.1 kB / 418.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.977e-05/0.3083, allocations: 35.56 kB / 418.4 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.3084, allocations: 47.31 kB / 418.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3085, allocations: 7.984 kB / 418.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3085, allocations: 4 kB / 418.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3085, allocations: 4 kB / 418.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/0.3106, allocations: 1.254 MB / 419.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.3107, allocations: 0 / 419.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003322/0.311, allocations: 67.86 kB / 419.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006932/0.3117, allocations: 240.6 kB / 420 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.3118, allocations: 15.98 kB / 420 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003642/0.3154, allocations: 2.852 MB / 422.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3154, allocations: 0 / 422.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.3172, allocations: 0.9663 MB / 423.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/0.3174, allocations: 144.7 kB / 424 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.245e-05/0.3174, allocations: 19.92 kB / 424 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.3178, allocations: 27.97 kB / 424 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.3179, allocations: 64.34 kB / 424.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.318, allocations: 28.05 kB / 424.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002205/0.3182, allocations: 200.6 kB / 424.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3182, allocations: 0 / 424.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005983/0.3188, allocations: 152 kB / 424.4 MB, free: 352 kB / 334.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.0002365/0.3191, allocations: 143.9 kB / 424.6 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.3205, allocations: 0.6995 MB / 425.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3205, allocations: 0 / 425.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008188/0.3213, allocations: 487.7 kB / 425.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.3218, allocations: 40.41 kB / 425.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.3231, allocations: 0.7967 MB / 426.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.3235, allocations: 0.7968 MB / 427.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.3237, allocations: 62.94 kB / 427.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.3238, allocations: 31.42 kB / 427.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3238, allocations: 0 / 427.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Templates: time 0.01234/0.3361, allocations: 7.858 MB / 435.3 MB, free: 5.363 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches