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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.1 MB / 186.1 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003616, allocations: 12 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08837/0.08878, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3499/0.4387, allocations: 67.93 MB / 340.1 MB, free: 5.266 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.4391, allocations: 67.59 kB / 340.1 MB, free: 5.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02757/0.4667, allocations: 5.388 MB / 345.5 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4667, allocations: 0 / 345.5 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.375e-05/0.4668, allocations: 4 kB / 345.5 MB, free: 0.5078 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.002091/0.4689, allocations: 0.636 MB / 346.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.4689, allocations: 8.031 kB / 346.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001901/0.4691, allocations: 60.97 kB / 346.2 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.4693, allocations: 35.62 kB / 346.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004984/0.4698, allocations: 272.5 kB / 346.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.354e-05/0.4699, allocations: 22.83 kB / 346.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.47, allocations: 28.19 kB / 346.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.4712, allocations: 380 kB / 346.9 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.4713, allocations: 3.906 kB / 347 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.017e-05/0.4714, allocations: 14.75 kB / 347 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.4714, allocations: 8 kB / 347 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.4729, allocations: 402.5 kB / 347.4 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003698/0.4766, allocations: 1.124 MB / 348.5 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009125/0.4776, allocations: 302 kB / 348.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.979e-05/0.4777, allocations: 7.984 kB / 348.8 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.4778, allocations: 38.19 kB / 348.8 MB, free: 13.6 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.417e-06/0.4778, allocations: 0 / 348.8 MB, free: 13.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008784/0.4866, allocations: 2.215 MB / 351 MB, free: 11.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.4867, allocations: 55.41 kB / 351.1 MB, free: 11.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003647/0.487, allocations: 210.2 kB / 351.3 MB, free: 11.39 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.4872, allocations: 38.33 kB / 351.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.4874, allocations: 165.5 kB / 351.5 MB, free: 11.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/0.4876, allocations: 150.5 kB / 351.6 MB, free: 11.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.273e-05/0.4877, allocations: 9.625 kB / 351.7 MB, free: 11.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4879, allocations: 337.4 kB / 352 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007578/0.4886, allocations: 211.6 kB / 352.2 MB, free: 10.63 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008145/0.4895, allocations: 276.8 kB / 352.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006746/0.4902, allocations: 175.1 kB / 352.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.4902, allocations: 8 kB / 352.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003046/0.4933, allocations: 0.7931 MB / 353.4 MB, free: 9.676 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.4934, allocations: 9.031 kB / 353.4 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.4934, allocations: 8 kB / 353.5 MB, free: 9.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001604/0.495, allocations: 0.5136 MB / 354 MB, free: 9.234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006342/0.4957, allocations: 74.72 kB / 354 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002088/0.4978, allocations: 1.372 MB / 355.4 MB, free: 7.871 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009639/0.4988, allocations: 100.7 kB / 355.5 MB, free: 7.781 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.499, allocations: 20.62 kB / 355.5 MB, free: 7.766 MB / 282.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.0003537/0.4994, allocations: 162.2 kB / 355.7 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.4995, allocations: 35.58 kB / 355.7 MB, free: 7.586 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001621/0.4997, allocations: 45.25 kB / 355.8 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.4997, allocations: 8 kB / 355.8 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.4998, allocations: 7.984 kB / 355.8 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4998, allocations: 3.938 kB / 355.8 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005464/0.5053, allocations: 1.477 MB / 357.3 MB, free: 6.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.5053, allocations: 4 kB / 357.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006022/0.5059, allocations: 63.25 kB / 357.3 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.5074, allocations: 488.2 kB / 357.8 MB, free: 5.816 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.5076, allocations: 19.05 kB / 357.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001863/0.5095, allocations: 1.328 MB / 359.2 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.5096, allocations: 3.953 kB / 359.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003775/0.5134, allocations: 1.103 MB / 360.3 MB, free: 3.602 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000385/0.5138, allocations: 154.7 kB / 360.4 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.5139, allocations: 22.88 kB / 360.4 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005827/0.5145, allocations: 51.64 kB / 360.5 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003335/0.5149, allocations: 106.7 kB / 360.6 MB, free: 3.297 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.652e-05/0.515, allocations: 23.48 kB / 360.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002742/0.5153, allocations: 172.9 kB / 360.8 MB, free: 3.129 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5153, allocations: 0 / 360.8 MB, free: 3.129 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007662/0.5161, allocations: 110.2 kB / 360.9 MB, free: 3.035 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.004453/0.5206, allocations: 2.05 MB / 362.9 MB, free: 1.168 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.5225, allocations: 0.4922 MB / 363.4 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.5226, allocations: 0 / 363.4 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.5237, allocations: 289.2 kB / 363.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.5244, allocations: 40.84 kB / 363.8 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009809/0.5342, allocations: 3.859 MB / 367.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.5348, allocations: 0.7803 MB / 368.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002858/0.5351, allocations: 30.97 kB / 368.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.5353, allocations: 92.64 kB / 368.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.373e-06/0.5353, allocations: 0 / 368.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06956/0.6049, allocations: 9.675 MB / 378.2 MB, free: 2.633 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003844/0.6054, allocations: 205.6 kB / 378.4 MB, free: 2.391 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.81/3.415, allocations: 7.938 kB / 378.4 MB, free: 2.383 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat