Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001173, allocations: 115.5 kB / 17.07 MB, free: 6 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.001187/0.001187, allocations: 192 kB / 18 MB, free: 5.082 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.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 47.91 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2759, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003533/0.2795, allocations: 2.44 MB / 403.1 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009681/0.2805, allocations: 0.4915 MB / 403.6 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.2806, allocations: 7.938 kB / 403.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000194/0.2808, allocations: 43.58 kB / 403.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.281, allocations: 87.27 kB / 403.8 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.2814, allocations: 199.6 kB / 404 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004327/0.2819, allocations: 491.1 kB / 404.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.2821, allocations: 68.7 kB / 404.5 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.2823, allocations: 207.4 kB / 404.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.2826, allocations: 239.2 kB / 404.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.837e-05/0.2827, allocations: 36 kB / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.2828, allocations: 95.94 kB / 405.1 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.283, allocations: 99.7 kB / 405.2 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.2831, allocations: 179.2 kB / 405.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004649/0.2836, allocations: 475.5 kB / 405.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2836, allocations: 0 / 405.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2836, allocations: 0 / 405.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.2836, allocations: 0 / 405.8 MB, free: 3.738 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.00124/0.2849, allocations: 0.6618 MB / 406.5 MB, free: 3.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.2849, allocations: 8.031 kB / 406.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.493e-05/0.285, allocations: 40.47 kB / 406.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.2854, allocations: 284.6 kB / 406.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.2855, allocations: 20.94 kB / 406.8 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.642e-05/0.2855, allocations: 36.38 kB / 406.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007194/0.2863, allocations: 377.2 kB / 407.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.2863, allocations: 4.094 kB / 407.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.2864, allocations: 15.94 kB / 407.2 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.2864, allocations: 11.98 kB / 407.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000846/0.2872, allocations: 405.9 kB / 407.7 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.2892, allocations: 1.096 MB / 408.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005295/0.2898, allocations: 291.6 kB / 409 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003514/0.2901, allocations: 201.8 kB / 409.2 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.492e-05/0.2902, allocations: 4 kB / 409.2 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.2902, allocations: 38.5 kB / 409.3 MB, free: 92 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.854e-06/0.2902, allocations: 3.938 kB / 409.3 MB, free: 88 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004605/0.2948, allocations: 2.033 MB / 411.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.2949, allocations: 67.34 kB / 411.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.2951, allocations: 233 kB / 411.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.462e-05/0.2952, allocations: 41.69 kB / 411.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.041e-05/0.2953, allocations: 152.7 kB / 411.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.2954, allocations: 150 kB / 411.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.2956, allocations: 98.08 kB / 412 MB, free: 13.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.2958, allocations: 346.7 kB / 412.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003949/0.2962, allocations: 209 kB / 412.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004391/0.2966, allocations: 284.8 kB / 412.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006418/0.2973, allocations: 381.7 kB / 413.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2973, allocations: 4 kB / 413.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001492/0.2988, allocations: 0.6885 MB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2988, allocations: 4 kB / 413.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.2988, allocations: 7.984 kB / 413.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008353/0.2997, allocations: 497.5 kB / 414.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.3, allocations: 71.91 kB / 414.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.3012, allocations: 1.393 MB / 415.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.3017, allocations: 67.91 kB / 415.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.3018, allocations: 16.12 kB / 416 MB, free: 9.094 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.302, allocations: 174.2 kB / 416.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.071e-05/0.3021, allocations: 35.56 kB / 416.2 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.3022, allocations: 43.31 kB / 416.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3022, allocations: 4 kB / 416.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3022, allocations: 3.984 kB / 416.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3022, allocations: 4 kB / 416.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002728/0.305, allocations: 1.334 MB / 417.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.305, allocations: 0 / 417.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.3053, allocations: 64.06 kB / 417.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007025/0.306, allocations: 465.3 kB / 418.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.587e-05/0.3061, allocations: 23.97 kB / 418.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.3072, allocations: 1.339 MB / 419.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3072, allocations: 8.094 kB / 419.4 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.309, allocations: 0.9362 MB / 420.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.3092, allocations: 156.7 kB / 420.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.032e-05/0.3093, allocations: 23.94 kB / 420.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.3096, allocations: 31.95 kB / 420.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.3098, allocations: 91.86 kB / 420.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.792e-05/0.3098, allocations: 19.97 kB / 420.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.31, allocations: 172.4 kB / 420.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.31, allocations: 0 / 420.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004898/0.3105, allocations: 108 kB / 421 MB, free: 3.883 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00026/0.3108, allocations: 141 kB / 421.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.3119, allocations: 0.5183 MB / 421.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3119, allocations: 0 / 421.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006126/0.3125, allocations: 296.3 kB / 421.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005248/0.3131, allocations: 52.7 kB / 422 MB, free: 2.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.3152, allocations: 0.9722 MB / 422.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.3156, allocations: 0.78 MB / 423.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.3158, allocations: 30.97 kB / 423.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.831e-05/0.3158, allocations: 35.42 kB / 423.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of SimCode: time 1.743e-06/0.3159, allocations: 0 / 423.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of Templates: time 0.01365/0.3295, allocations: 8.787 MB / 432.6 MB, free: 8.234 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches