Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.252/1.252, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002772, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05846/0.05878, allocations: 25.17 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.0033/0.06214, allocations: 1.772 MB / 185.3 MB, free: 4.141 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.06426, allocations: 0.8431 MB / 186.1 MB, free: 3.293 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.06443, allocations: 4 kB / 186.1 MB, free: 3.289 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.06464, allocations: 43.69 kB / 186.2 MB, free: 3.246 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002943/0.06495, allocations: 107.7 kB / 186.3 MB, free: 3.141 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000822/0.06578, allocations: 187.6 kB / 186.5 MB, free: 2.957 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000547/0.06634, allocations: 315.8 kB / 186.8 MB, free: 2.648 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.0666, allocations: 86.3 kB / 186.9 MB, free: 2.566 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003941/0.06701, allocations: 199.3 kB / 187 MB, free: 2.371 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004059/0.06743, allocations: 235.2 kB / 187.3 MB, free: 2.141 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 7.725e-05/0.06753, allocations: 20 kB / 187.3 MB, free: 2.121 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003758/0.06791, allocations: 107.9 kB / 187.4 MB, free: 2.016 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.06807, allocations: 83.7 kB / 187.5 MB, free: 1.934 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.0682, allocations: 85.52 kB / 187.6 MB, free: 1.844 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006604/0.06887, allocations: 387 kB / 187.9 MB, free: 1.465 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.06889, allocations: 0 / 187.9 MB, free: 1.465 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.0689, allocations: 0 / 187.9 MB, free: 1.465 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.06892, allocations: 0 / 187.9 MB, free: 1.465 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001894/0.07082, allocations: 0.6703 MB / 188.6 MB, free: 0.7461 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.07089, allocations: 8.031 kB / 188.6 MB, free: 0.7383 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.07102, allocations: 70.53 kB / 188.7 MB, free: 0.6602 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.07115, allocations: 39.53 kB / 188.7 MB, free: 0.6211 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005255/0.07169, allocations: 287.2 kB / 189 MB, free: 304 kB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.499e-05/0.07176, allocations: 32.66 kB / 189 MB, free: 268 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.07188, allocations: 31.98 kB / 189.1 MB, free: 236 kB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.07335, allocations: 487.3 kB / 189.6 MB, free: 15.74 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.0734, allocations: 3.906 kB / 189.6 MB, free: 15.73 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-05/0.07347, allocations: 16 kB / 189.6 MB, free: 15.72 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.465e-05/0.07354, allocations: 16 kB / 189.6 MB, free: 15.7 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.07508, allocations: 450.6 kB / 190 MB, free: 15.26 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.07876, allocations: 1.169 MB / 191.2 MB, free: 14.04 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.08045, allocations: 488.3 kB / 191.7 MB, free: 13.55 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.147e-05/0.08056, allocations: 8.5 kB / 191.7 MB, free: 13.55 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/0.08061, allocations: 46.95 kB / 191.7 MB, free: 13.49 MB / 170.7 MB Notification: Performance of pre-optimization done (n=47): time 3.646e-06/0.08063, allocations: 0 / 191.7 MB, free: 13.49 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.009275/0.08991, allocations: 2.519 MB / 194.2 MB, free: 10.84 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/0.09004, allocations: 85.67 kB / 194.3 MB, free: 10.74 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004504/0.0905, allocations: 278.5 kB / 194.6 MB, free: 10.46 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.322e-05/0.0906, allocations: 41.7 kB / 194.6 MB, free: 10.41 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.09078, allocations: 211.4 kB / 194.8 MB, free: 10.21 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.09102, allocations: 181.4 kB / 195 MB, free: 10.03 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.09109, allocations: 12 kB / 195 MB, free: 10.02 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.09126, allocations: 334.8 kB / 195.4 MB, free: 9.68 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008637/0.09213, allocations: 257 kB / 195.6 MB, free: 9.426 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009134/0.09306, allocations: 317.5 kB / 195.9 MB, free: 9.109 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000803/0.09388, allocations: 238.1 kB / 196.2 MB, free: 8.875 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.0939, allocations: 0 / 196.2 MB, free: 8.875 MB / 170.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002424/0.09634, allocations: 0.7534 MB / 196.9 MB, free: 8.109 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.09639, allocations: 8 kB / 196.9 MB, free: 8.102 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.09641, allocations: 0 / 196.9 MB, free: 8.102 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.098, allocations: 320.6 kB / 197.2 MB, free: 7.785 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008708/0.0989, allocations: 79.89 kB / 197.3 MB, free: 7.707 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/0.1009, allocations: 0.9587 MB / 198.3 MB, free: 6.719 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007993/0.1018, allocations: 76 kB / 198.3 MB, free: 6.645 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-05/0.1019, allocations: 23.98 kB / 198.4 MB, free: 6.621 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003371/0.1022, allocations: 165.8 kB / 198.5 MB, free: 6.449 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.1023, allocations: 39.52 kB / 198.6 MB, free: 6.41 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001793/0.1025, allocations: 51.62 kB / 198.6 MB, free: 6.359 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.1026, allocations: 11.89 kB / 198.6 MB, free: 6.348 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1026, allocations: 4 kB / 198.6 MB, free: 6.344 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1026, allocations: 3.984 kB / 198.6 MB, free: 6.34 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004457/0.1071, allocations: 1.527 MB / 200.2 MB, free: 4.75 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.1071, allocations: 7.938 kB / 200.2 MB, free: 4.742 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006468/0.1078, allocations: 79.92 kB / 200.2 MB, free: 4.664 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001049/0.1088, allocations: 290.7 kB / 200.5 MB, free: 4.379 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.579e-05/0.1089, allocations: 23.97 kB / 200.6 MB, free: 4.355 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/0.1106, allocations: 0.9183 MB / 201.5 MB, free: 3.418 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.1106, allocations: 4 kB / 201.5 MB, free: 3.414 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003512/0.1141, allocations: 1.14 MB / 202.6 MB, free: 2.25 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.1145, allocations: 168.5 kB / 202.8 MB, free: 2.066 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.1147, allocations: 12 kB / 202.8 MB, free: 2.055 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006946/0.1154, allocations: 72 kB / 202.9 MB, free: 1.984 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.1157, allocations: 88.25 kB / 203 MB, free: 1.898 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-05/0.1158, allocations: 23.98 kB / 203 MB, free: 1.875 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003147/0.1161, allocations: 202 kB / 203.2 MB, free: 1.672 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1161, allocations: 0 / 203.2 MB, free: 1.672 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006715/0.1168, allocations: 128 kB / 203.3 MB, free: 1.547 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.1622/0.279, allocations: 1.733 MB / 205 MB, free: 24.52 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.003117/0.2822, allocations: 0.6172 MB / 205.6 MB, free: 24.52 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.2823, allocations: 2.062 kB / 205.7 MB, free: 24.52 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.2841, allocations: 341.4 kB / 206 MB, free: 24.52 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.2848, allocations: 34.77 kB / 206 MB, free: 24.52 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007381/0.2922, allocations: 2.811 MB / 208.8 MB, free: 23.33 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.2926, allocations: 0.8068 MB / 209.6 MB, free: 22.63 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.293, allocations: 116.7 kB / 209.7 MB, free: 22.55 MB / 170.7 MB Notification: Performance of SimCode: time 9.01e-07/0.293, allocations: 0 / 209.7 MB, free: 22.55 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.123/3.416, allocations: 7.213 MB / 217 MB, free: 19.7 MB / 170.7 MB