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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008803/0.0008801, allocations: 88.83 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000306/0.0003061, allocations: 4 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2728, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.3733, allocations: 78.89 MB / 480.4 MB, free: 1.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.3736, allocations: 64.97 kB / 480.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01552/0.3891, allocations: 5.657 MB / 486.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3892, allocations: 0 / 486.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.3892, allocations: 4 kB / 486.1 MB, free: 11.83 MB / 362.7 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.001123/0.3903, allocations: 0.6313 MB / 486.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.3904, allocations: 8.031 kB / 486.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.803e-05/0.3905, allocations: 35.53 kB / 486.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.3908, allocations: 267.5 kB / 487 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.3909, allocations: 24.56 kB / 487.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.578e-05/0.391, allocations: 27.91 kB / 487.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.3916, allocations: 356.7 kB / 487.4 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.3917, allocations: 0 / 487.4 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.3917, allocations: 16 kB / 487.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.3917, allocations: 11.95 kB / 487.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007078/0.3925, allocations: 358 kB / 487.8 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.3945, allocations: 1.127 MB / 488.9 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.395, allocations: 300.9 kB / 489.2 MB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.152e-05/0.3951, allocations: 7.984 kB / 489.2 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.3951, allocations: 38.56 kB / 489.3 MB, free: 8.457 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.724e-06/0.3951, allocations: 0 / 489.3 MB, free: 8.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.004234/0.3994, allocations: 2.012 MB / 491.3 MB, free: 6.312 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.3994, allocations: 55.84 kB / 491.4 MB, free: 6.246 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.3996, allocations: 196.1 kB / 491.5 MB, free: 6.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.313e-05/0.3997, allocations: 41.69 kB / 491.6 MB, free: 6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.349e-05/0.3998, allocations: 152.8 kB / 491.7 MB, free: 5.848 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.3999, allocations: 153.9 kB / 491.9 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.3999, allocations: 8 kB / 491.9 MB, free: 5.688 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4, allocations: 342.8 kB / 492.2 MB, free: 5.344 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000357/0.4004, allocations: 185 kB / 492.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.4008, allocations: 264.8 kB / 492.7 MB, free: 4.879 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.4011, allocations: 145.9 kB / 492.8 MB, free: 4.738 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4011, allocations: 0 / 492.8 MB, free: 4.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001386/0.4025, allocations: 0.6455 MB / 493.5 MB, free: 4.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4026, allocations: 12.16 kB / 493.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.376e-05/0.4026, allocations: 4 kB / 493.5 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007243/0.4033, allocations: 397.5 kB / 493.9 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.4036, allocations: 79.78 kB / 493.9 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.4048, allocations: 1.308 MB / 495.2 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004169/0.4052, allocations: 100 kB / 495.3 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.787e-05/0.4053, allocations: 23.95 kB / 495.4 MB, free: 2.109 MB / 362.7 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001948/0.4055, allocations: 157.8 kB / 495.5 MB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.601e-05/0.4055, allocations: 31.62 kB / 495.5 MB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.407, allocations: 0.6483 MB / 496.2 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.4071, allocations: 7.953 kB / 496.2 MB, free: 1.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4071, allocations: 0 / 496.2 MB, free: 1.238 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4071, allocations: 8 kB / 496.2 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.4097, allocations: 1.31 MB / 497.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4097, allocations: 0 / 497.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.41, allocations: 59.91 kB / 497.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006534/0.4107, allocations: 361.6 kB / 497.9 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.4107, allocations: 19.97 kB / 498 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.4118, allocations: 1.269 MB / 499.2 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4119, allocations: 3.984 kB / 499.2 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.4136, allocations: 0.9244 MB / 0.4884 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.4138, allocations: 148.7 kB / 0.4886 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.989e-05/0.4138, allocations: 20 kB / 0.4886 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.4141, allocations: 51.95 kB / 0.4886 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.4143, allocations: 99.78 kB / 0.4887 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-05/0.4144, allocations: 28.09 kB / 0.4888 GB, free: 12.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001466/0.4145, allocations: 164.4 kB / 0.4889 GB, free: 12.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4146, allocations: 0 / 0.4889 GB, free: 12.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004752/0.415, allocations: 111.9 kB / 0.489 GB, free: 12.46 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00022/0.4153, allocations: 151.6 kB / 0.4892 GB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009909/0.4163, allocations: 0.5262 MB / 0.4897 GB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4163, allocations: 0 / 0.4897 GB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005413/0.4168, allocations: 283.6 kB / 0.49 GB, free: 11.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.4172, allocations: 51.78 kB / 0.49 GB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.4193, allocations: 1.161 MB / 0.4911 GB, free: 10.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.4196, allocations: 0.7881 MB / 0.4919 GB, free: 9.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.4198, allocations: 30.97 kB / 0.4919 GB, free: 9.402 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.4198, allocations: 27.44 kB / 0.492 GB, free: 9.375 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4199, allocations: 0 / 0.492 GB, free: 9.375 MB / 378.7 MB Notification: Performance of Templates: time 0.01068/0.4305, allocations: 7.365 MB / 0.4992 GB, free: 2.043 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches