Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.751/1.751, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003346, allocations: 8 kB / 233.9 MB, free: 304 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07935/0.0797, allocations: 38.77 MB / 272.6 MB, free: 9.449 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003267/0.08303, allocations: 1.923 MB / 274.6 MB, free: 7.504 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.08436, allocations: 0.5109 MB / 275.1 MB, free: 6.992 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.08454, allocations: 4 kB / 275.1 MB, free: 6.988 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.0847, allocations: 39.75 kB / 275.1 MB, free: 6.949 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.08498, allocations: 87.75 kB / 275.2 MB, free: 6.863 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005679/0.08556, allocations: 147.7 kB / 275.3 MB, free: 6.719 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004862/0.08606, allocations: 284 kB / 275.6 MB, free: 6.441 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.08625, allocations: 48.7 kB / 275.7 MB, free: 6.395 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003002/0.08657, allocations: 183.4 kB / 275.8 MB, free: 6.215 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.08693, allocations: 203.2 kB / 276 MB, free: 6.016 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.167e-05/0.08702, allocations: 20 kB / 276.1 MB, free: 5.996 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000288/0.08732, allocations: 103.9 kB / 276.2 MB, free: 5.895 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.08745, allocations: 71.78 kB / 276.2 MB, free: 5.824 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.917e-05/0.08756, allocations: 77.52 kB / 276.3 MB, free: 5.742 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005278/0.08809, allocations: 327.5 kB / 276.6 MB, free: 5.422 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.08811, allocations: 0 / 276.6 MB, free: 5.422 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.08812, allocations: 0 / 276.6 MB, free: 5.422 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.08814, allocations: 0 / 276.6 MB, free: 5.422 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.001766/0.08991, allocations: 0.6274 MB / 277.3 MB, free: 4.746 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.08998, allocations: 8.031 kB / 277.3 MB, free: 4.738 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.09011, allocations: 39.47 kB / 277.3 MB, free: 4.699 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004354/0.09056, allocations: 263.6 kB / 277.6 MB, free: 4.402 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.197e-05/0.09063, allocations: 28.52 kB / 277.6 MB, free: 4.371 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.09074, allocations: 35.91 kB / 277.6 MB, free: 4.336 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.09184, allocations: 364.6 kB / 278 MB, free: 3.973 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.09189, allocations: 0 / 278 MB, free: 3.973 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.942e-05/0.09196, allocations: 12 kB / 278 MB, free: 3.961 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.09198, allocations: 4 kB / 278 MB, free: 3.957 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.09325, allocations: 394 kB / 278.4 MB, free: 3.574 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003112/0.0964, allocations: 1.104 MB / 279.5 MB, free: 2.391 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008361/0.09728, allocations: 287.6 kB / 279.8 MB, free: 2.102 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.573e-05/0.09737, allocations: 8.312 kB / 279.8 MB, free: 2.094 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.09742, allocations: 43.16 kB / 279.8 MB, free: 2.043 MB / 234.7 MB Notification: Performance of pre-optimization done (n=39): time 3.296e-06/0.09744, allocations: 4 kB / 279.8 MB, free: 2.039 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.2352/0.3326, allocations: 2.209 MB / 282 MB, free: 15.71 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.3327, allocations: 58.59 kB / 282.1 MB, free: 15.64 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003559/0.333, allocations: 231.9 kB / 282.3 MB, free: 15.54 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.173e-05/0.3332, allocations: 41.12 kB / 282.3 MB, free: 15.5 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3333, allocations: 152.7 kB / 282.5 MB, free: 15.42 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.3335, allocations: 152.7 kB / 282.6 MB, free: 15.36 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.3335, allocations: 10.72 kB / 282.7 MB, free: 15.36 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3336, allocations: 343.6 kB / 283 MB, free: 15.04 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006906/0.3343, allocations: 204.7 kB / 283.2 MB, free: 15.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007244/0.3351, allocations: 275.4 kB / 283.5 MB, free: 14.97 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005135/0.3356, allocations: 163.4 kB / 283.6 MB, free: 14.96 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3356, allocations: 0 / 283.6 MB, free: 14.96 MB / 234.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002692/0.3383, allocations: 0.8316 MB / 284.4 MB, free: 14.79 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.3384, allocations: 6.469 kB / 284.5 MB, free: 14.79 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3384, allocations: 2.062 kB / 284.5 MB, free: 14.79 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.3394, allocations: 364.7 kB / 284.8 MB, free: 14.68 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005254/0.34, allocations: 74.16 kB / 284.9 MB, free: 14.67 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.3415, allocations: 1.367 MB / 286.3 MB, free: 13.49 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008352/0.3423, allocations: 101.5 kB / 286.4 MB, free: 13.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.833e-05/0.3424, allocations: 18 kB / 286.4 MB, free: 13.47 MB / 234.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.0002629/0.3427, allocations: 164.2 kB / 286.5 MB, free: 13.32 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.639e-05/0.3428, allocations: 30.5 kB / 286.6 MB, free: 13.31 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.3429, allocations: 47.95 kB / 286.6 MB, free: 13.27 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-06/0.3429, allocations: 7.016 kB / 286.6 MB, free: 13.27 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.343, allocations: 1.219 kB / 286.6 MB, free: 13.27 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.3432, allocations: 142.1 kB / 286.8 MB, free: 13.14 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.3433, allocations: 19.73 kB / 286.8 MB, free: 13.13 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000744/0.3441, allocations: 87.58 kB / 286.9 MB, free: 13.12 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003026/0.3444, allocations: 101.7 kB / 287 MB, free: 13.11 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002521/0.3469, allocations: 0.6647 MB / 287.6 MB, free: 12.82 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001987/0.3489, allocations: 0.8061 MB / 288.4 MB, free: 12.4 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006422/0.3496, allocations: 212.5 kB / 288.6 MB, free: 12.32 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002135/0.3498, allocations: 165 kB / 288.8 MB, free: 12.21 MB / 234.7 MB Notification: Performance of Backend: time 8.82e-07/0.3499, allocations: 0.75 kB / 288.8 MB, free: 12.21 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.3514, allocations: 434.1 kB / 289.2 MB, free: 12.04 MB / 234.7 MB Notification: Performance of SimCode: time 0.001904/0.3533, allocations: 1.406 MB / 290.6 MB, free: 10.93 MB / 234.7 MB Notification: Performance of Templates: time 0.01796/0.3713, allocations: 6.637 MB / 297.3 MB, free: 8.742 MB / 234.7 MB