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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.606/1.606, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003608/0.000361, allocations: 12 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06958/0.06997, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002914/0.07292, allocations: 1.92 MB / 273.8 MB, free: 10.25 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.0741, allocations: 0.5148 MB / 274.4 MB, free: 9.73 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.07426, allocations: 4 kB / 274.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.0744, allocations: 31.77 kB / 274.4 MB, free: 9.695 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000237/0.07465, allocations: 99.72 kB / 274.5 MB, free: 9.598 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004468/0.07511, allocations: 139.7 kB / 274.6 MB, free: 9.461 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004307/0.07556, allocations: 288 kB / 274.9 MB, free: 9.18 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.07573, allocations: 52.7 kB / 275 MB, free: 9.129 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.07601, allocations: 179.4 kB / 275.1 MB, free: 8.953 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003127/0.07634, allocations: 199.3 kB / 275.3 MB, free: 8.758 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-05/0.07642, allocations: 23.94 kB / 275.4 MB, free: 8.734 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002336/0.07667, allocations: 103.9 kB / 275.5 MB, free: 8.633 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.0768, allocations: 75.77 kB / 275.5 MB, free: 8.559 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.516e-05/0.0769, allocations: 77.52 kB / 275.6 MB, free: 8.477 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004808/0.0774, allocations: 323.5 kB / 275.9 MB, free: 8.16 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.993e-06/0.07741, allocations: 0 / 275.9 MB, free: 8.16 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.896e-06/0.07743, allocations: 0 / 275.9 MB, free: 8.16 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.07744, allocations: 4 kB / 275.9 MB, free: 8.156 MB / 234.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.001358/0.07881, allocations: 0.6237 MB / 276.5 MB, free: 7.484 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.07887, allocations: 12.03 kB / 276.6 MB, free: 7.473 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.07898, allocations: 39.53 kB / 276.6 MB, free: 7.434 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.0794, allocations: 259.5 kB / 276.9 MB, free: 7.141 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.07947, allocations: 24.52 kB / 276.9 MB, free: 7.113 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-05/0.07957, allocations: 35.91 kB / 276.9 MB, free: 7.078 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009154/0.0805, allocations: 360.7 kB / 277.3 MB, free: 6.719 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.08054, allocations: 4 kB / 277.3 MB, free: 6.715 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.082e-05/0.0806, allocations: 12 kB / 277.3 MB, free: 6.703 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.08063, allocations: 8 kB / 277.3 MB, free: 6.695 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.08174, allocations: 390 kB / 277.7 MB, free: 6.316 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.08432, allocations: 1.108 MB / 278.8 MB, free: 5.129 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007224/0.08507, allocations: 291.1 kB / 279.1 MB, free: 4.84 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.872e-05/0.08514, allocations: 12.31 kB / 279.1 MB, free: 4.828 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.08519, allocations: 39.16 kB / 279.1 MB, free: 4.781 MB / 234.7 MB Notification: Performance of pre-optimization done (n=39): time 3.471e-06/0.0852, allocations: 0 / 279.1 MB, free: 4.781 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.006395/0.09161, allocations: 2.215 MB / 281.3 MB, free: 2.43 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.0917, allocations: 59.36 kB / 281.4 MB, free: 2.359 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.09205, allocations: 237 kB / 281.6 MB, free: 2.121 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.095e-05/0.09214, allocations: 37.7 kB / 281.7 MB, free: 2.078 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.09232, allocations: 223.1 kB / 281.9 MB, free: 1.859 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.09251, allocations: 146 kB / 282 MB, free: 1.715 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.153e-05/0.09256, allocations: 12 kB / 282 MB, free: 1.703 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.09276, allocations: 334.8 kB / 282.4 MB, free: 1.367 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005582/0.09333, allocations: 197 kB / 282.5 MB, free: 1.176 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006419/0.09398, allocations: 276.8 kB / 282.8 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004685/0.09447, allocations: 164.7 kB / 283 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.783e-06/0.09449, allocations: 0 / 283 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002386/0.09689, allocations: 0.8174 MB / 283.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.09694, allocations: 12.12 kB / 283.8 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.09696, allocations: 4 kB / 283.8 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009228/0.09789, allocations: 365.5 kB / 284.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003863/0.0983, allocations: 75.91 kB / 284.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001749/0.1001, allocations: 1.366 MB / 285.6 MB, free: 14.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.1006, allocations: 87.98 kB / 285.7 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.27e-05/0.1007, allocations: 20 kB / 285.7 MB, free: 13.91 MB / 250.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): 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.000282/0.101, allocations: 162 kB / 285.9 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.1011, allocations: 35.58 kB / 285.9 MB, free: 13.71 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.1013, allocations: 55.23 kB / 286 MB, free: 13.65 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.693e-06/0.1013, allocations: 4 kB / 286 MB, free: 13.65 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.817e-06/0.1013, allocations: 0 / 286 MB, free: 13.65 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.64e-06/0.1013, allocations: 0 / 286 MB, free: 13.65 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003957/0.1053, allocations: 1.503 MB / 287.5 MB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.183e-06/0.1053, allocations: 4.156 kB / 287.5 MB, free: 12.06 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.1057, allocations: 67.86 kB / 287.5 MB, free: 12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008303/0.1066, allocations: 329.5 kB / 287.9 MB, free: 11.67 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/0.1066, allocations: 15.98 kB / 287.9 MB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001574/0.1082, allocations: 1.308 MB / 289.2 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.1082, allocations: 7.984 kB / 289.2 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002765/0.111, allocations: 1.072 MB / 290.3 MB, free: 9.176 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.1113, allocations: 148.7 kB / 290.4 MB, free: 9.012 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.494e-05/0.1114, allocations: 12 kB / 290.4 MB, free: 9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.1118, allocations: 60.03 kB / 290.5 MB, free: 8.941 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.1121, allocations: 99.72 kB / 290.6 MB, free: 8.844 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.776e-05/0.1122, allocations: 23.98 kB / 290.6 MB, free: 8.82 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002255/0.1124, allocations: 168.5 kB / 290.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.07e-07/0.1124, allocations: 0 / 290.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005892/0.113, allocations: 99.98 kB / 290.9 MB, free: 8.555 MB / 250.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.0002686/0.1133, allocations: 143.9 kB / 291 MB, free: 8.402 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.1148, allocations: 0.4907 MB / 291.5 MB, free: 7.914 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.455e-06/0.1148, allocations: 0 / 291.5 MB, free: 7.914 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008049/0.1156, allocations: 288.2 kB / 291.8 MB, free: 7.633 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.1161, allocations: 44.44 kB / 291.8 MB, free: 7.59 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002992/0.1191, allocations: 1.188 MB / 293 MB, free: 6.355 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.1196, allocations: 0.788 MB / 293.8 MB, free: 5.543 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.1198, allocations: 31.42 kB / 293.8 MB, free: 5.512 MB / 250.7 MB Notification: Performance of SimCode: time 1.852e-06/0.1198, allocations: 0 / 293.8 MB, free: 5.512 MB / 250.7 MB Notification: Performance of Templates: time 0.2031/0.3229, allocations: 6.021 MB / 299.8 MB, free: 31.13 MB / 250.7 MB