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.001072/0.001072, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001125/0.001125, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.317/1.317, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 59.33 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08706/0.08809, allocations: 49.44 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003274/0.0914, allocations: 2.43 MB / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008799/0.0923, allocations: 0.4953 MB / 354.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.09242, allocations: 7.938 kB / 354.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.09261, allocations: 47.56 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.09276, allocations: 79.28 kB / 354.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.0932, allocations: 199.5 kB / 354.7 MB, free: 416 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.09366, allocations: 499.1 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.09384, allocations: 72.56 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002138/0.09406, allocations: 215.4 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002969/0.09436, allocations: 231.2 kB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.809e-05/0.09443, allocations: 40 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.09459, allocations: 87.94 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.09471, allocations: 99.66 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.09488, allocations: 183.1 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004529/0.09534, allocations: 466.4 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.09535, allocations: 0 / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09536, allocations: 0 / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.09538, allocations: 7.984 kB / 356.6 MB, free: 14.54 MB / 302.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.001151/0.09653, allocations: 0.6549 MB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.09657, allocations: 12.03 kB / 357.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.256e-05/0.09666, allocations: 32.56 kB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.09703, allocations: 284.6 kB / 357.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.09707, allocations: 24.94 kB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.744e-05/0.09714, allocations: 32.28 kB / 357.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006694/0.09782, allocations: 373.2 kB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.09785, allocations: 4.188 kB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.09789, allocations: 15.94 kB / 358 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.09791, allocations: 8 kB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007583/0.09867, allocations: 402 kB / 358.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.1005, allocations: 1.111 MB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005073/0.101, allocations: 295.5 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003455/0.1014, allocations: 197.8 kB / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-05/0.1014, allocations: 7.984 kB / 360 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.1015, allocations: 42.5 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.334e-06/0.1015, allocations: 4 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004295/0.1058, allocations: 2.018 MB / 362.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.1058, allocations: 55.41 kB / 362.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.1061, allocations: 240.8 kB / 362.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/0.1061, allocations: 41.7 kB / 362.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.791e-05/0.1062, allocations: 152.8 kB / 362.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.1063, allocations: 154 kB / 362.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.1065, allocations: 98.14 kB / 362.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1066, allocations: 342.8 kB / 363.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.107, allocations: 209 kB / 363.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.1075, allocations: 288.8 kB / 363.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006003/0.1081, allocations: 377.7 kB / 364 MB, free: 6.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1081, allocations: 4 kB / 364 MB, free: 6.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00139/0.1095, allocations: 0.6923 MB / 364.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1095, allocations: 4.156 kB / 364.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1095, allocations: 8 kB / 364.7 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008205/0.1103, allocations: 493.4 kB / 365.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.1106, allocations: 75.95 kB / 365.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.1118, allocations: 1.39 MB / 366.7 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004043/0.1122, allocations: 68.05 kB / 366.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.517e-05/0.1123, allocations: 19.98 kB / 366.7 MB, free: 3.91 MB / 302.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.0001956/0.1125, allocations: 162.2 kB / 366.9 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.395e-05/0.1126, allocations: 39.56 kB / 366.9 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.1127, allocations: 47.3 kB / 367 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1127, allocations: 4 kB / 367 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1127, allocations: 4 kB / 367 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1128, allocations: 3.984 kB / 367 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/0.1154, allocations: 1.341 MB / 368.3 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.1155, allocations: 7.984 kB / 368.3 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002743/0.1157, allocations: 51.92 kB / 368.4 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000736/0.1165, allocations: 469.5 kB / 368.9 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.193e-05/0.1165, allocations: 19.92 kB / 368.9 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.1177, allocations: 1.339 MB / 370.2 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.1177, allocations: 7.969 kB / 370.2 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1574/0.2751, allocations: 0.9371 MB / 371.2 MB, free: 26.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001905/0.2753, allocations: 155.5 kB / 371.3 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.263e-05/0.2754, allocations: 17.56 kB / 371.3 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/0.2757, allocations: 41.09 kB / 371.4 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.2759, allocations: 84.38 kB / 371.4 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-05/0.276, allocations: 20.53 kB / 371.5 MB, free: 25.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001729/0.2762, allocations: 172 kB / 371.6 MB, free: 25.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2762, allocations: 0 / 371.6 MB, free: 25.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.2766, allocations: 104.1 kB / 371.7 MB, free: 25.89 MB / 302.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.0002126/0.2769, allocations: 140 kB / 371.9 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.2779, allocations: 0.5155 MB / 372.4 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.278, allocations: 0.625 kB / 372.4 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.2785, allocations: 293.1 kB / 372.7 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004817/0.279, allocations: 50.95 kB / 372.7 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.2811, allocations: 0.9742 MB / 373.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.2813, allocations: 0.7815 MB / 374.5 MB, free: 24.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.2814, allocations: 39.3 kB / 374.5 MB, free: 24.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.574e-05/0.2815, allocations: 29.36 kB / 374.5 MB, free: 24.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2815, allocations: 0 / 374.5 MB, free: 24.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01298/0.2945, allocations: 8.715 MB / 383.3 MB, free: 22.27 MB / 302.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/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