Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.891/1.891, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.000363, allocations: 12 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08144, allocations: 44.51 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002959/0.08445, allocations: 1.924 MB / 310.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.08566, allocations: 0.4963 MB / 310.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.08584, allocations: 11.94 kB / 310.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.086, allocations: 31.77 kB / 310.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.08627, allocations: 95.72 kB / 310.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005144/0.0868, allocations: 135.8 kB / 311 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.08727, allocations: 296 kB / 311.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.08745, allocations: 52.67 kB / 311.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00028/0.08774, allocations: 187.3 kB / 311.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003273/0.08808, allocations: 207.3 kB / 311.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.542e-05/0.08817, allocations: 20 kB / 311.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.08835, allocations: 59.95 kB / 311.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.08848, allocations: 83.7 kB / 311.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.833e-05/0.0886, allocations: 81.52 kB / 312 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004582/0.08907, allocations: 311.5 kB / 312.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.738e-06/0.08909, allocations: 0 / 312.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.08911, allocations: 0 / 312.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.299e-06/0.08912, allocations: 0 / 312.3 MB, free: 13.04 MB / 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.001383/0.09051, allocations: 0.6275 MB / 312.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.09057, allocations: 12.03 kB / 313 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.09069, allocations: 31.62 kB / 313 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.09113, allocations: 275.4 kB / 313.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.59e-05/0.09119, allocations: 20.56 kB / 313.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.031e-05/0.09129, allocations: 27.98 kB / 313.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009509/0.09226, allocations: 380.7 kB / 313.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.0923, allocations: 7.984 kB / 313.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.389e-05/0.09237, allocations: 12 kB / 313.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.09239, allocations: 4 kB / 313.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.09353, allocations: 406 kB / 314.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002618/0.09617, allocations: 1.139 MB / 315.2 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007398/0.09694, allocations: 291.6 kB / 315.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.704e-05/0.09701, allocations: 8.328 kB / 315.5 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.09707, allocations: 35.22 kB / 315.6 MB, free: 9.605 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 3.743e-06/0.09708, allocations: 0 / 315.6 MB, free: 9.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.00683/0.1039, allocations: 2.113 MB / 317.7 MB, free: 7.355 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.104, allocations: 63.34 kB / 317.7 MB, free: 7.281 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/0.1044, allocations: 232.9 kB / 318 MB, free: 7.043 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.668e-05/0.1045, allocations: 41.69 kB / 318 MB, free: 6.996 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.1046, allocations: 211.2 kB / 318.2 MB, free: 6.785 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.1048, allocations: 153.9 kB / 318.4 MB, free: 6.633 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-05/0.1049, allocations: 11.98 kB / 318.4 MB, free: 6.621 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1051, allocations: 334.8 kB / 318.7 MB, free: 6.285 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005825/0.1057, allocations: 209 kB / 318.9 MB, free: 6.078 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006671/0.1064, allocations: 284.8 kB / 319.2 MB, free: 5.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004883/0.1069, allocations: 176.7 kB / 319.4 MB, free: 5.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.314e-06/0.1069, allocations: 3.984 kB / 319.4 MB, free: 5.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002068/0.109, allocations: 0.677 MB / 320 MB, free: 4.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.109, allocations: 6.031 kB / 320 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1091, allocations: 4 kB / 320 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.1103, allocations: 497.5 kB / 320.5 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003882/0.1107, allocations: 75.89 kB / 320.6 MB, free: 4.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/0.1126, allocations: 1.394 MB / 322 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005497/0.1131, allocations: 92.05 kB / 322.1 MB, free: 2.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.227e-05/0.1132, allocations: 19.98 kB / 322.1 MB, free: 2.781 MB / 266.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.0002906/0.1135, allocations: 165.7 kB / 322.3 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1136, allocations: 27.72 kB / 322.3 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.1138, allocations: 47.36 kB / 322.3 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.1138, allocations: 8 kB / 322.4 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.509e-06/0.1138, allocations: 0 / 322.4 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.866e-06/0.1138, allocations: 4 kB / 322.4 MB, free: 2.527 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003812/0.1176, allocations: 1.393 MB / 323.7 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.951e-06/0.1177, allocations: 4 kB / 323.8 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003874/0.1181, allocations: 63.91 kB / 323.8 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.1192, allocations: 457.5 kB / 324.3 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.145e-05/0.1193, allocations: 19.98 kB / 324.3 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/0.1211, allocations: 1.339 MB / 325.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/0.1212, allocations: 4.031 kB / 325.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004346/0.1255, allocations: 0.9512 MB / 326.6 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004574/0.126, allocations: 160.6 kB / 326.7 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.1262, allocations: 16 kB / 326.7 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007289/0.127, allocations: 51.89 kB / 326.8 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004062/0.1274, allocations: 107.7 kB / 326.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.1275, allocations: 19.98 kB / 326.9 MB, free: 13.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003698/0.1279, allocations: 164.5 kB / 327.1 MB, free: 13.6 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.74e-07/0.1279, allocations: 0 / 327.1 MB, free: 13.6 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001098/0.1291, allocations: 111.9 kB / 327.2 MB, free: 13.49 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) * 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.0004358/0.1295, allocations: 139.2 kB / 327.3 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.1321, allocations: 0.51 MB / 327.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.307e-06/0.1321, allocations: 0 / 327.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.1336, allocations: 300.2 kB / 328.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008165/0.1344, allocations: 36.41 kB / 328.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005348/0.1398, allocations: 1.199 MB / 329.4 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007399/0.1406, allocations: 0.7919 MB / 330.2 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002415/0.1409, allocations: 27.44 kB / 330.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of SimCode: time 2.227e-06/0.1409, allocations: 0 / 330.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of Templates: time 0.02116/0.1621, allocations: 6.375 MB / 336.6 MB, free: 4.035 MB / 282.7 MB