Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.335e-05/2.346e-05, allocations: 3.938 kB / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1029, allocations: 38.76 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3726/0.4756, allocations: 67.19 MB / 328.5 MB, free: 5.129 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.4759, allocations: 67.59 kB / 328.5 MB, free: 5.094 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02196/0.4978, allocations: 5.327 MB / 333.9 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.597e-06/0.4979, allocations: 0 / 333.9 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.4979, allocations: 15.88 kB / 333.9 MB, free: 492 kB / 266.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.001351/0.4993, allocations: 0.5963 MB / 334.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4993, allocations: 8.031 kB / 334.5 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.4995, allocations: 35.62 kB / 334.5 MB, free: 15.81 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.4999, allocations: 273 kB / 334.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.5, allocations: 8 kB / 334.8 MB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.584e-05/0.5001, allocations: 27.94 kB / 334.8 MB, free: 15.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008589/0.5009, allocations: 370.7 kB / 335.2 MB, free: 15.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007321/0.5017, allocations: 324.2 kB / 335.5 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.5017, allocations: 2.938 kB / 335.5 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.093e-05/0.5018, allocations: 7.922 kB / 335.5 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.5018, allocations: 8 kB / 335.5 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003148/0.505, allocations: 1.068 MB / 336.6 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.5056, allocations: 260.6 kB / 336.8 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.5059, allocations: 177.4 kB / 337 MB, free: 13.76 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.15e-05/0.506, allocations: 7.938 kB / 337 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.506, allocations: 40.03 kB / 337 MB, free: 13.71 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.911e-06/0.5061, allocations: 0 / 337 MB, free: 13.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.004427/0.5105, allocations: 1.53 MB / 338.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.5106, allocations: 55.41 kB / 338.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.5109, allocations: 184.7 kB / 338.8 MB, free: 12.1 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.279e-05/0.5109, allocations: 37.33 kB / 338.8 MB, free: 12.06 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.5111, allocations: 215.1 kB / 339.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.5113, allocations: 148.5 kB / 339.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.5114, allocations: 0 / 339.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.5116, allocations: 337.3 kB / 339.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004143/0.512, allocations: 186.2 kB / 339.7 MB, free: 11.3 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004781/0.5125, allocations: 261.9 kB / 340 MB, free: 11.1 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005249/0.513, allocations: 157.4 kB / 340.1 MB, free: 10.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.033e-06/0.513, allocations: 0 / 340.1 MB, free: 10.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002195/0.5152, allocations: 0.7273 MB / 340.9 MB, free: 10.4 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.5153, allocations: 8 kB / 340.9 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.466e-06/0.5153, allocations: 0 / 340.9 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.5165, allocations: 0.4959 MB / 341.4 MB, free: 9.988 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.5169, allocations: 75.84 kB / 341.4 MB, free: 9.918 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.519, allocations: 1.433 MB / 342.9 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.5201, allocations: 84.08 kB / 342.9 MB, free: 8.496 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.5203, allocations: 23.05 kB / 343 MB, free: 8.477 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * 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 (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.0004074/0.5207, allocations: 123.1 kB / 343.1 MB, free: 8.352 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.5209, allocations: 31.62 kB / 343.1 MB, free: 8.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002038/0.5212, allocations: 52.77 kB / 343.2 MB, free: 8.297 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.5212, allocations: 4 kB / 343.2 MB, free: 8.293 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.5212, allocations: 0 / 343.2 MB, free: 8.293 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.5213, allocations: 7.922 kB / 343.2 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006121/0.5274, allocations: 1.383 MB / 344.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.5275, allocations: 0 / 344.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006121/0.5281, allocations: 64.06 kB / 344.6 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001653/0.5298, allocations: 480.3 kB / 345.1 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.5299, allocations: 15.23 kB / 345.1 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00276/0.5327, allocations: 1.363 MB / 346.5 MB, free: 5.312 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.264e-06/0.5328, allocations: 8.062 kB / 346.5 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/0.5358, allocations: 1.041 MB / 347.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002929/0.5361, allocations: 151.2 kB / 347.7 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.5362, allocations: 15.17 kB / 347.7 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/0.5366, allocations: 47.95 kB / 347.7 MB, free: 4.211 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/0.5369, allocations: 99.03 kB / 347.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.365e-05/0.537, allocations: 26.72 kB / 347.9 MB, free: 4.105 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001946/0.5372, allocations: 156.3 kB / 348 MB, free: 3.969 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.45e-07/0.5373, allocations: 0 / 348 MB, free: 3.969 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006188/0.5379, allocations: 80 kB / 348.1 MB, free: 3.891 MB / 282.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) * 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.0002885/0.5382, allocations: 134.7 kB / 348.2 MB, free: 3.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.5393, allocations: 459.8 kB / 348.7 MB, free: 3.445 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.359e-06/0.5394, allocations: 8 kB / 348.7 MB, free: 3.438 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006312/0.54, allocations: 249.9 kB / 348.9 MB, free: 3.273 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004765/0.5405, allocations: 31.16 kB / 348.9 MB, free: 3.254 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.5431, allocations: 0.8784 MB / 349.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.5437, allocations: 0.7839 MB / 350.6 MB, free: 1.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.5439, allocations: 31.42 kB / 350.6 MB, free: 1.559 MB / 282.7 MB Notification: Performance of SimCode: time 1.756e-06/0.5439, allocations: 0 / 350.6 MB, free: 1.559 MB / 282.7 MB Notification: Performance of Templates: time 0.01166/0.5555, allocations: 6.003 MB / 356.6 MB, free: 11.59 MB / 298.7 MB