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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.073/1.073, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.776e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08163/0.08169, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.3063, allocations: 34.99 MB / 208.4 MB, free: 4.699 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.3067, allocations: 61.12 kB / 208.4 MB, free: 4.699 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03933/0.346, allocations: 8.201 MB / 216.6 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3461, allocations: 0 / 216.6 MB, free: 3.25 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.96e-05/0.3461, allocations: 9.188 kB / 216.6 MB, free: 3.25 MB / 170.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.002593/0.3487, allocations: 0.7711 MB / 217.4 MB, free: 2.684 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.3488, allocations: 11.62 kB / 217.4 MB, free: 2.684 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.3491, allocations: 53.62 kB / 217.5 MB, free: 2.656 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006177/0.3497, allocations: 321.2 kB / 217.8 MB, free: 2.383 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/0.3498, allocations: 15.44 kB / 217.8 MB, free: 2.383 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.3499, allocations: 26.84 kB / 217.8 MB, free: 2.383 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001351/0.3513, allocations: 0.5134 MB / 218.3 MB, free: 2.32 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.3525, allocations: 0.5297 MB / 218.9 MB, free: 2.141 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/0.3526, allocations: 7.859 kB / 218.9 MB, free: 2.133 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.806e-05/0.3527, allocations: 3.188 kB / 218.9 MB, free: 2.133 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.3527, allocations: 9.625 kB / 218.9 MB, free: 2.133 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003922/0.3566, allocations: 1.261 MB / 220.2 MB, free: 1.438 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.3579, allocations: 393.4 kB / 220.5 MB, free: 1.383 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005937/0.3585, allocations: 255.6 kB / 220.8 MB, free: 1.367 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.521e-05/0.3586, allocations: 12.12 kB / 220.8 MB, free: 1.363 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.3586, allocations: 38.94 kB / 220.8 MB, free: 1.324 MB / 170.7 MB Notification: Performance of pre-optimization done (n=55): time 4.098e-06/0.3587, allocations: 0 / 220.8 MB, free: 1.324 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.006027/0.3647, allocations: 1.863 MB / 222.7 MB, free: 0.5273 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.3648, allocations: 67.36 kB / 222.8 MB, free: 468 kB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/0.3652, allocations: 257 kB / 223 MB, free: 340 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001737/0.3654, allocations: 33.23 kB / 223.1 MB, free: 308 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.3655, allocations: 247.5 kB / 223.3 MB, free: 104 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000296/0.3659, allocations: 206.5 kB / 223.5 MB, free: 15.95 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.918e-05/0.3659, allocations: 0 / 223.5 MB, free: 15.95 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3661, allocations: 339.1 kB / 223.8 MB, free: 15.63 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006709/0.3668, allocations: 281.6 kB / 224.1 MB, free: 15.61 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000702/0.3675, allocations: 325.9 kB / 224.4 MB, free: 15.56 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.3683, allocations: 212.6 kB / 224.6 MB, free: 15.53 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.3683, allocations: 0 / 224.6 MB, free: 15.53 MB / 186.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002365/0.3707, allocations: 0.8014 MB / 225.4 MB, free: 15.38 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/0.3708, allocations: 7 kB / 225.4 MB, free: 15.38 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.3708, allocations: 4 kB / 225.4 MB, free: 15.38 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002032/0.3729, allocations: 0.7585 MB / 226.2 MB, free: 15.19 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008082/0.3737, allocations: 105.1 kB / 226.3 MB, free: 15.16 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.3761, allocations: 1.162 MB / 227.5 MB, free: 14.56 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.3776, allocations: 128.6 kB / 227.6 MB, free: 14.52 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/0.3778, allocations: 31.11 kB / 227.6 MB, free: 14.52 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0003753/0.3782, allocations: 135.6 kB / 227.8 MB, free: 14.39 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002344/0.3806, allocations: 0.7024 MB / 228.5 MB, free: 14.24 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/0.3809, allocations: 46.31 kB / 228.5 MB, free: 14.21 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002138/0.3811, allocations: 57.2 kB / 228.6 MB, free: 14.2 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.3812, allocations: 7.75 kB / 228.6 MB, free: 14.2 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.3812, allocations: 3.953 kB / 228.6 MB, free: 14.2 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.3812, allocations: 3.984 kB / 228.6 MB, free: 14.2 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003574/0.3848, allocations: 1.356 MB / 229.9 MB, free: 13.64 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.3849, allocations: 0 / 229.9 MB, free: 13.64 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008655/0.3857, allocations: 89.33 kB / 230 MB, free: 13.62 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.3877, allocations: 0.7263 MB / 230.7 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/0.3879, allocations: 15.59 kB / 230.8 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.3902, allocations: 1.127 MB / 231.9 MB, free: 12.81 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.3903, allocations: 0 / 231.9 MB, free: 12.81 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00292/0.3932, allocations: 1.154 MB / 233 MB, free: 12.52 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004934/0.3937, allocations: 187.9 kB / 233.2 MB, free: 12.37 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.3939, allocations: 14.78 kB / 233.2 MB, free: 12.37 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.3952, allocations: 128.8 kB / 233.4 MB, free: 12.33 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004885/0.3957, allocations: 152.7 kB / 233.5 MB, free: 12.24 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.3958, allocations: 34.05 kB / 233.5 MB, free: 12.23 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000295/0.3961, allocations: 192.8 kB / 233.7 MB, free: 12.14 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3961, allocations: 0 / 233.7 MB, free: 12.14 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008619/0.397, allocations: 130.3 kB / 233.9 MB, free: 12.11 MB / 186.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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * 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.003642/0.4007, allocations: 1.675 MB / 235.5 MB, free: 10.71 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002154/0.4029, allocations: 0.6474 MB / 236.2 MB, free: 10.27 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.4029, allocations: 0 / 236.2 MB, free: 10.27 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.4041, allocations: 365.3 kB / 236.5 MB, free: 9.926 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009928/0.4051, allocations: 65.31 kB / 236.6 MB, free: 9.859 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.4098, allocations: 1.306 MB / 237.9 MB, free: 8.508 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.4104, allocations: 0.8476 MB / 238.8 MB, free: 7.637 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004476/0.4109, allocations: 143.4 kB / 238.9 MB, free: 7.496 MB / 186.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4109, allocations: 0 / 238.9 MB, free: 7.496 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.085/3.496, allocations: 9.259 MB / 248.2 MB, free: 14.23 MB / 202.7 MB