Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.073/1.073, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003761/0.0003763, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05992/0.06033, allocations: 25.17 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002934/0.06333, allocations: 1.706 MB / 185.2 MB, free: 4.215 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.06453, allocations: 435.5 kB / 185.6 MB, free: 3.785 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.06468, allocations: 0 / 185.6 MB, free: 3.785 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.06485, allocations: 31.77 kB / 185.7 MB, free: 3.754 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002607/0.06512, allocations: 87.77 kB / 185.8 MB, free: 3.668 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004861/0.06562, allocations: 123.8 kB / 185.9 MB, free: 3.547 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005026/0.06614, allocations: 276.1 kB / 186.1 MB, free: 3.277 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.06635, allocations: 60.73 kB / 186.2 MB, free: 3.219 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.06666, allocations: 175.4 kB / 186.4 MB, free: 3.047 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.06703, allocations: 195.3 kB / 186.6 MB, free: 2.855 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 7.332e-05/0.06711, allocations: 20 kB / 186.6 MB, free: 2.836 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001926/0.06732, allocations: 51.97 kB / 186.6 MB, free: 2.785 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.06745, allocations: 67.78 kB / 186.7 MB, free: 2.719 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 9.977e-05/0.06756, allocations: 77.52 kB / 186.8 MB, free: 2.637 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000494/0.06807, allocations: 303.1 kB / 187.1 MB, free: 2.34 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.06809, allocations: 0 / 187.1 MB, free: 2.34 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.0681, allocations: 4 kB / 187.1 MB, free: 2.336 MB / 154.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.06812, allocations: 4 kB / 187.1 MB, free: 2.332 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001727/0.06986, allocations: 0.6081 MB / 187.7 MB, free: 1.676 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/0.06993, allocations: 12.03 kB / 187.7 MB, free: 1.664 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.07005, allocations: 58.55 kB / 187.8 MB, free: 1.598 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.07016, allocations: 31.62 kB / 187.8 MB, free: 1.566 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.07059, allocations: 258.5 kB / 188 MB, free: 1.273 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/0.07065, allocations: 24.56 kB / 188.1 MB, free: 1.25 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-05/0.07075, allocations: 28 kB / 188.1 MB, free: 1.223 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.07182, allocations: 360.7 kB / 188.5 MB, free: 0.8594 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.07186, allocations: 7.859 kB / 188.5 MB, free: 0.8516 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.921e-05/0.07193, allocations: 12 kB / 188.5 MB, free: 0.8398 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.07195, allocations: 8 kB / 188.5 MB, free: 0.832 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.07317, allocations: 382 kB / 188.9 MB, free: 472 kB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003083/0.07627, allocations: 1.092 MB / 189.9 MB, free: 15.29 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008019/0.07712, allocations: 274.6 kB / 190.2 MB, free: 15.01 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.934e-05/0.07719, allocations: 4 kB / 190.2 MB, free: 15.01 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.07724, allocations: 38.56 kB / 190.3 MB, free: 14.96 MB / 170.7 MB Notification: Performance of pre-optimization done (n=37): time 3.346e-06/0.07725, allocations: 0 / 190.3 MB, free: 14.96 MB / 170.7 MB Notification: Performance of matching and sorting (n=43): time 0.007397/0.08466, allocations: 2.006 MB / 192.3 MB, free: 12.82 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.08476, allocations: 59.41 kB / 192.3 MB, free: 12.75 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.08512, allocations: 228.9 kB / 192.5 MB, free: 12.52 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 7.653e-05/0.08521, allocations: 41.7 kB / 192.6 MB, free: 12.47 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.08538, allocations: 215.2 kB / 192.8 MB, free: 12.26 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.08558, allocations: 150 kB / 192.9 MB, free: 12.11 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.08563, allocations: 12 kB / 192.9 MB, free: 12.1 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.0858, allocations: 330.8 kB / 193.3 MB, free: 11.77 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.08647, allocations: 189 kB / 193.5 MB, free: 11.58 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007314/0.08722, allocations: 276.8 kB / 193.7 MB, free: 11.28 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005487/0.08778, allocations: 164.7 kB / 193.9 MB, free: 11.12 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.0878, allocations: 0 / 193.9 MB, free: 11.12 MB / 170.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002362/0.09017, allocations: 0.6379 MB / 194.5 MB, free: 10.47 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.09024, allocations: 8 kB / 194.5 MB, free: 10.46 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.09026, allocations: 160 / 194.5 MB, free: 10.46 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.09136, allocations: 373.4 kB / 194.9 MB, free: 10.09 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.09188, allocations: 71.91 kB / 195 MB, free: 10.02 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.09377, allocations: 1.355 MB / 196.3 MB, free: 8.617 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000887/0.09469, allocations: 95.97 kB / 196.4 MB, free: 8.523 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-05/0.09477, allocations: 16 kB / 196.4 MB, free: 8.508 MB / 170.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 (47): * Single equations (assignments): 45 * 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.0003192/0.0951, allocations: 158.1 kB / 196.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.09521, allocations: 31.56 kB / 196.6 MB, free: 8.312 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/0.09537, allocations: 47.31 kB / 196.7 MB, free: 8.266 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.0954, allocations: 11.95 kB / 196.7 MB, free: 8.254 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.09542, allocations: 3.984 kB / 196.7 MB, free: 8.25 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.09543, allocations: 0 / 196.7 MB, free: 8.25 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/0.09977, allocations: 1.315 MB / 198 MB, free: 6.852 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.09982, allocations: 0 / 198 MB, free: 6.852 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005115/0.1003, allocations: 59.91 kB / 198.1 MB, free: 6.793 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000918/0.1013, allocations: 337.8 kB / 198.4 MB, free: 6.457 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.736e-05/0.1014, allocations: 15.97 kB / 198.4 MB, free: 6.441 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.1031, allocations: 1.312 MB / 199.7 MB, free: 5.078 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1031, allocations: 128 / 199.7 MB, free: 5.078 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.106, allocations: 0.8934 MB / 200.6 MB, free: 4.148 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/0.1063, allocations: 144.7 kB / 200.7 MB, free: 3.988 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.1064, allocations: 16 kB / 200.8 MB, free: 3.973 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005218/0.107, allocations: 55.89 kB / 200.8 MB, free: 3.918 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/0.1073, allocations: 103.7 kB / 200.9 MB, free: 3.816 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.194e-05/0.1074, allocations: 19.98 kB / 200.9 MB, free: 3.797 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.000238/0.1076, allocations: 168.4 kB / 201.1 MB, free: 3.629 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1076, allocations: 0 / 201.1 MB, free: 3.629 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006166/0.1083, allocations: 100 kB / 201.2 MB, free: 3.531 MB / 170.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 (33): * Single equations (assignments): 31 * 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.003356/0.1116, allocations: 1.465 MB / 202.7 MB, free: 2.02 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.1134, allocations: 494.9 kB / 203.1 MB, free: 1.539 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.1134, allocations: 320 / 203.1 MB, free: 1.539 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009759/0.1144, allocations: 283.6 kB / 203.4 MB, free: 1.258 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000571/0.115, allocations: 39.38 kB / 203.5 MB, free: 1.223 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1449/0.2599, allocations: 2.595 MB / 206.1 MB, free: 24.39 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.2602, allocations: 0.7811 MB / 206.8 MB, free: 23.69 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.2605, allocations: 94.88 kB / 206.9 MB, free: 23.69 MB / 170.7 MB Notification: Performance of SimCode: time 1.253e-06/0.2605, allocations: 0 / 206.9 MB, free: 23.69 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.084/3.344, allocations: 6.93 MB / 213.9 MB, free: 21.5 MB / 170.7 MB