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.CoupledClutches.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.CoupledClutches,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.194/1.194, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.000266, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06007/0.06038, allocations: 25.18 MB / 183.5 MB, free: 5.914 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004092/0.06452, allocations: 2.202 MB / 185.7 MB, free: 3.707 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002693/0.06727, allocations: 0.9068 MB / 186.6 MB, free: 2.797 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000403/0.06773, allocations: 7.938 kB / 186.6 MB, free: 2.789 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002251/0.06797, allocations: 47.61 kB / 186.7 MB, free: 2.742 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005455/0.06853, allocations: 155.5 kB / 186.8 MB, free: 2.59 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009086/0.06946, allocations: 191.7 kB / 187 MB, free: 2.402 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.07057, allocations: 460.4 kB / 187.5 MB, free: 1.953 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003004/0.07089, allocations: 111.4 kB / 187.6 MB, free: 1.844 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005341/0.07144, allocations: 283 kB / 187.8 MB, free: 1.566 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005461/0.072, allocations: 318.8 kB / 188.2 MB, free: 1.254 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.07213, allocations: 32 kB / 188.2 MB, free: 1.223 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002505/0.07239, allocations: 63.97 kB / 188.3 MB, free: 1.16 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001793/0.07258, allocations: 115.6 kB / 188.4 MB, free: 1.047 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.07274, allocations: 113.4 kB / 188.5 MB, free: 0.9297 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007372/0.07348, allocations: 470.7 kB / 188.9 MB, free: 480 kB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.0735, allocations: 0 / 188.9 MB, free: 480 kB / 154.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.07352, allocations: 0 / 188.9 MB, free: 480 kB / 154.7 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.07353, allocations: 0 / 188.9 MB, free: 480 kB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.002535/0.07607, allocations: 0.8106 MB / 189.7 MB, free: 15.61 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.07613, allocations: 8.031 kB / 189.8 MB, free: 15.6 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/0.07629, allocations: 78.52 kB / 189.8 MB, free: 15.51 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.07646, allocations: 55.34 kB / 189.9 MB, free: 15.46 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.07706, allocations: 326.7 kB / 190.2 MB, free: 15.1 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.447e-05/0.07713, allocations: 33 kB / 190.2 MB, free: 15.06 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.07728, allocations: 44 kB / 190.3 MB, free: 15.02 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.07907, allocations: 0.5994 MB / 190.9 MB, free: 14.41 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.07912, allocations: 7.844 kB / 190.9 MB, free: 14.4 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.608e-05/0.07921, allocations: 16 kB / 190.9 MB, free: 14.38 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.07924, allocations: 12 kB / 190.9 MB, free: 14.37 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00202/0.08127, allocations: 0.5739 MB / 191.5 MB, free: 13.8 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00382/0.08511, allocations: 1.324 MB / 192.8 MB, free: 12.41 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.08679, allocations: 429.3 kB / 193.2 MB, free: 11.98 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.575e-05/0.08691, allocations: 8.562 kB / 193.2 MB, free: 11.97 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.08696, allocations: 43.11 kB / 193.3 MB, free: 11.92 MB / 170.7 MB Notification: Performance of pre-optimization done (n=55): time 3.447e-06/0.08697, allocations: 0 / 193.3 MB, free: 11.92 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.01094/0.09792, allocations: 2.901 MB / 196.2 MB, free: 8.879 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.09801, allocations: 55.97 kB / 196.2 MB, free: 8.812 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005496/0.09857, allocations: 329.6 kB / 196.6 MB, free: 8.48 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.0987, allocations: 45.69 kB / 196.6 MB, free: 8.43 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.09889, allocations: 239.8 kB / 196.8 MB, free: 8.195 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002731/0.09917, allocations: 217.1 kB / 197.1 MB, free: 7.98 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.219e-05/0.09925, allocations: 8 kB / 197.1 MB, free: 7.973 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.09943, allocations: 342.8 kB / 197.4 MB, free: 7.629 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.1005, allocations: 309.2 kB / 197.7 MB, free: 7.328 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.1016, allocations: 361.6 kB / 198 MB, free: 6.965 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009022/0.1026, allocations: 247.1 kB / 198.3 MB, free: 6.727 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.1026, allocations: 0 / 198.3 MB, free: 6.727 MB / 170.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002943/0.1055, allocations: 0.8693 MB / 199.2 MB, free: 5.844 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.1056, allocations: 7.938 kB / 199.2 MB, free: 5.836 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.1056, allocations: 4 kB / 199.2 MB, free: 5.832 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001692/0.1073, allocations: 0.5371 MB / 199.7 MB, free: 5.293 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007252/0.108, allocations: 95.89 kB / 199.8 MB, free: 5.199 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/0.1103, allocations: 1.06 MB / 200.9 MB, free: 4.113 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.1116, allocations: 139.9 kB / 201 MB, free: 3.977 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.384e-05/0.1117, allocations: 23.94 kB / 201 MB, free: 3.953 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: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0004003/0.1121, allocations: 176 kB / 201.2 MB, free: 3.77 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.1123, allocations: 51.52 kB / 201.2 MB, free: 3.719 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.1125, allocations: 76.7 kB / 201.3 MB, free: 3.645 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.1125, allocations: 11.94 kB / 201.3 MB, free: 3.633 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.1125, allocations: 0 / 201.3 MB, free: 3.633 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.1125, allocations: 3.984 kB / 201.3 MB, free: 3.629 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00416/0.1167, allocations: 1.466 MB / 202.8 MB, free: 2.105 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.1168, allocations: 0 / 202.8 MB, free: 2.105 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008225/0.1176, allocations: 91.89 kB / 202.9 MB, free: 2.016 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001646/0.1193, allocations: 0.4999 MB / 203.4 MB, free: 1.516 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001515/0.1195, allocations: 27.97 kB / 203.4 MB, free: 1.488 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.1217, allocations: 1.025 MB / 204.4 MB, free: 448 kB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1217, allocations: 96 / 204.4 MB, free: 448 kB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1493/0.2711, allocations: 1.237 MB / 205.7 MB, free: 24.59 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003987/0.2715, allocations: 179.1 kB / 205.9 MB, free: 24.5 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/0.2717, allocations: 24.59 kB / 205.9 MB, free: 24.5 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.2729, allocations: 142.7 kB / 206 MB, free: 24.5 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005086/0.2734, allocations: 146.2 kB / 206.2 MB, free: 24.5 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.583e-05/0.2735, allocations: 28.67 kB / 206.2 MB, free: 24.5 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003531/0.2739, allocations: 229.8 kB / 206.4 MB, free: 24.41 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2739, allocations: 0 / 206.4 MB, free: 24.41 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007206/0.2746, allocations: 145.8 kB / 206.6 MB, free: 24.41 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (J1.phi,J1.w,clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.004398/0.2791, allocations: 1.811 MB / 208.4 MB, free: 23.48 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002787/0.2819, allocations: 0.7453 MB / 209.1 MB, free: 23.26 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2819, allocations: 0 / 209.1 MB, free: 23.26 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.2835, allocations: 409.7 kB / 209.5 MB, free: 23.14 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.2846, allocations: 73.31 kB / 209.6 MB, free: 23.11 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.2958, allocations: 3.825 MB / 213.4 MB, free: 21.17 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/0.2963, allocations: 0.8487 MB / 214.3 MB, free: 20.47 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.2968, allocations: 145.3 kB / 214.4 MB, free: 20.37 MB / 170.7 MB Notification: Performance of SimCode: time 1.703e-06/0.2968, allocations: 3.969 kB / 214.4 MB, free: 20.37 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.809/3.106, allocations: 9.286 MB / 223.7 MB, free: 13.41 MB / 170.7 MB