Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003659, allocations: 19.94 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1008, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5913/0.6922, allocations: 73.26 MB / 382.3 MB, free: 15.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/0.6925, allocations: 70.83 kB / 382.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02817/0.7207, allocations: 5.472 MB / 387.8 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.267e-06/0.7208, allocations: 0 / 387.8 MB, free: 14.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.893e-05/0.7208, allocations: 3.875 kB / 387.8 MB, free: 14.83 MB / 314.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.002575/0.7234, allocations: 0.6212 MB / 388.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.7235, allocations: 8.969 kB / 388.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.7238, allocations: 35.84 kB / 388.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006375/0.7244, allocations: 267.4 kB / 388.8 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.008e-05/0.7245, allocations: 22.41 kB / 388.8 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.7247, allocations: 37.22 kB / 388.8 MB, free: 14.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.7263, allocations: 353.8 kB / 389.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.986e-05/0.7264, allocations: 0 / 389.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.09e-05/0.7265, allocations: 18.84 kB / 389.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.7265, allocations: 7.719 kB / 389.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.7281, allocations: 363.2 kB / 389.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0031/0.7312, allocations: 1.122 MB / 390.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007923/0.7321, allocations: 296.2 kB / 391 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.692e-05/0.7322, allocations: 3.938 kB / 391 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.7322, allocations: 37.38 kB / 391 MB, free: 13.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 4.037e-06/0.7322, allocations: 0 / 391 MB, free: 13.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.006948/0.7392, allocations: 2.013 MB / 393 MB, free: 12.78 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.7393, allocations: 61.98 kB / 393.1 MB, free: 12.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.7396, allocations: 215.1 kB / 393.3 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-05/0.7397, allocations: 42.66 kB / 393.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.7398, allocations: 149.6 kB / 393.5 MB, free: 12.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.7399, allocations: 155.8 kB / 393.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.882e-05/0.74, allocations: 9.906 kB / 393.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.979e-05/0.7401, allocations: 343.6 kB / 394 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005751/0.7407, allocations: 182.8 kB / 394.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006316/0.7413, allocations: 267.3 kB / 394.4 MB, free: 11.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.7418, allocations: 146.1 kB / 394.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.7418, allocations: 3.953 kB / 394.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002326/0.7442, allocations: 0.6459 MB / 395.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.7442, allocations: 11.69 kB / 395.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.7443, allocations: 3.875 kB / 395.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.7454, allocations: 397.3 kB / 395.6 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.7459, allocations: 71.14 kB / 395.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.7474, allocations: 1.313 MB / 397 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008469/0.7483, allocations: 98.17 kB / 397.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-05/0.7484, allocations: 30.06 kB / 397.1 MB, free: 10.77 MB / 314.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): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0003121/0.7487, allocations: 159.2 kB / 397.3 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.7488, allocations: 31.17 kB / 397.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/0.7512, allocations: 0.6504 MB / 398 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.7513, allocations: 7.625 kB / 398 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.7513, allocations: 7.938 kB / 398 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.7513, allocations: 3.047 kB / 398 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004239/0.7555, allocations: 1.314 MB / 399.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.7556, allocations: 0 / 399.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.7561, allocations: 58.03 kB / 399.3 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009844/0.7571, allocations: 362.4 kB / 399.7 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.097e-05/0.7572, allocations: 22.83 kB / 399.7 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.7586, allocations: 1.264 MB / 401 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.7586, allocations: 3.875 kB / 401 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004263/0.7629, allocations: 0.8763 MB / 401.9 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.7633, allocations: 144.7 kB / 402 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.7634, allocations: 18.88 kB / 402 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005411/0.764, allocations: 54.39 kB / 402.1 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002747/0.7643, allocations: 101.4 kB / 402.2 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.529e-05/0.7644, allocations: 29.62 kB / 402.2 MB, free: 8.656 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001961/0.7646, allocations: 158.5 kB / 402.4 MB, free: 8.578 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7646, allocations: 0 / 402.4 MB, free: 8.578 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000697/0.7653, allocations: 105.5 kB / 402.5 MB, free: 8.574 MB / 314.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.000294/0.7656, allocations: 151.3 kB / 402.6 MB, free: 8.473 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.7672, allocations: 0.5249 MB / 403.1 MB, free: 8.383 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.7673, allocations: 1.281 kB / 403.1 MB, free: 8.383 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.7683, allocations: 292.8 kB / 403.4 MB, free: 8.355 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006393/0.769, allocations: 45.09 kB / 403.5 MB, free: 8.352 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.7726, allocations: 1.151 MB / 404.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.773, allocations: 0.7854 MB / 405.4 MB, free: 7.027 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003003/0.7733, allocations: 28.23 kB / 405.4 MB, free: 7.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.7734, allocations: 33.58 kB / 405.5 MB, free: 7.008 MB / 314.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7735, allocations: 3.938 kB / 405.5 MB, free: 7.004 MB / 314.7 MB Notification: Performance of Templates: time 0.01833/0.7918, allocations: 7.379 MB / 412.8 MB, free: 4.199 MB / 314.7 MB