Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.047/1.047, allocations: 111.2 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002773/0.0002775, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04642/0.04672, allocations: 25.17 MB / 183.4 MB, free: 6.02 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003269/0.05004, allocations: 2.205 MB / 185.6 MB, free: 3.809 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.05209, allocations: 0.9026 MB / 186.5 MB, free: 2.902 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000265/0.05239, allocations: 7.938 kB / 186.5 MB, free: 2.895 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.05259, allocations: 55.61 kB / 186.6 MB, free: 2.84 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000393/0.05299, allocations: 151.6 kB / 186.7 MB, free: 2.691 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006248/0.05363, allocations: 187.6 kB / 186.9 MB, free: 2.508 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006923/0.05434, allocations: 464.4 kB / 187.4 MB, free: 2.055 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.05461, allocations: 103.8 kB / 187.5 MB, free: 1.953 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005224/0.05515, allocations: 291 kB / 187.8 MB, free: 1.668 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004708/0.05564, allocations: 314.8 kB / 188.1 MB, free: 1.359 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 9.491e-05/0.05575, allocations: 28 kB / 188.1 MB, free: 1.332 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.05598, allocations: 63.97 kB / 188.1 MB, free: 1.27 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.05616, allocations: 123.6 kB / 188.3 MB, free: 1.148 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.05632, allocations: 109.5 kB / 188.4 MB, free: 1.035 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006894/0.05702, allocations: 478.5 kB / 188.8 MB, free: 0.5664 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.295e-06/0.05704, allocations: 0 / 188.8 MB, free: 0.5664 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.581e-06/0.05705, allocations: 0 / 188.8 MB, free: 0.5664 MB / 154.7 MB Notification: Performance of Transformations before backend: time 9.03e-06/0.05707, allocations: 0 / 188.8 MB, free: 0.5664 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.00186/0.05894, allocations: 0.8068 MB / 189.6 MB, free: 15.71 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.05899, allocations: 8.031 kB / 189.7 MB, free: 15.7 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.05917, allocations: 63.23 kB / 189.7 MB, free: 15.64 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.05976, allocations: 326.7 kB / 190 MB, free: 15.28 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.093e-05/0.05983, allocations: 33 kB / 190.1 MB, free: 15.24 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.06, allocations: 40 kB / 190.1 MB, free: 15.2 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.0615, allocations: 0.5917 MB / 190.7 MB, free: 14.6 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.06156, allocations: 15.8 kB / 190.7 MB, free: 14.58 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.06164, allocations: 16 kB / 190.7 MB, free: 14.57 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.06167, allocations: 15.94 kB / 190.7 MB, free: 14.55 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.06334, allocations: 0.5739 MB / 191.3 MB, free: 13.98 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003117/0.06648, allocations: 1.317 MB / 192.6 MB, free: 12.6 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.06781, allocations: 433.3 kB / 193.1 MB, free: 12.16 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.356e-05/0.0679, allocations: 12.56 kB / 193.1 MB, free: 12.15 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.06796, allocations: 39.11 kB / 193.1 MB, free: 12.1 MB / 170.7 MB Notification: Performance of pre-optimization done (n=55): time 4.382e-06/0.06797, allocations: 4 kB / 193.1 MB, free: 12.1 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.008434/0.07642, allocations: 2.889 MB / 196 MB, free: 9.07 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.07651, allocations: 59.95 kB / 196.1 MB, free: 9 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004921/0.07702, allocations: 325.7 kB / 196.4 MB, free: 8.672 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.07714, allocations: 41.7 kB / 196.4 MB, free: 8.625 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.07735, allocations: 251.7 kB / 196.7 MB, free: 8.379 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/0.07763, allocations: 213.2 kB / 196.9 MB, free: 8.168 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.943e-05/0.0777, allocations: 12 kB / 196.9 MB, free: 8.156 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.07789, allocations: 338.8 kB / 197.2 MB, free: 7.816 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008736/0.07878, allocations: 305.2 kB / 197.5 MB, free: 7.52 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009324/0.07973, allocations: 361.6 kB / 197.9 MB, free: 7.156 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007084/0.08046, allocations: 247.1 kB / 198.1 MB, free: 6.918 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.155e-06/0.08048, allocations: 0 / 198.1 MB, free: 6.918 MB / 170.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002432/0.08292, allocations: 0.8732 MB / 199 MB, free: 6.035 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.08298, allocations: 6.031 kB / 199 MB, free: 6.031 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.083, allocations: 4 kB / 199 MB, free: 6.027 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.0844, allocations: 0.5409 MB / 199.5 MB, free: 5.484 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/0.08494, allocations: 95.89 kB / 199.6 MB, free: 5.391 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/0.08694, allocations: 1.06 MB / 200.7 MB, free: 4.305 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008531/0.08782, allocations: 143.9 kB / 200.8 MB, free: 4.164 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-05/0.08792, allocations: 19.98 kB / 200.8 MB, free: 4.145 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.0003928/0.08832, allocations: 180 kB / 201 MB, free: 3.957 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.08848, allocations: 47.52 kB / 201.1 MB, free: 3.91 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.08865, allocations: 64.72 kB / 201.1 MB, free: 3.848 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.684e-06/0.08867, allocations: 4.094 kB / 201.1 MB, free: 3.844 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.032e-06/0.08869, allocations: 7.984 kB / 201.1 MB, free: 3.836 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.248e-06/0.08871, allocations: 4 kB / 201.1 MB, free: 3.832 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.09229, allocations: 1.481 MB / 202.6 MB, free: 2.293 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.8e-06/0.09234, allocations: 0 / 202.6 MB, free: 2.293 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005544/0.09291, allocations: 87.89 kB / 202.7 MB, free: 2.207 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.09418, allocations: 0.5005 MB / 203.2 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.035e-05/0.0943, allocations: 31.97 kB / 203.2 MB, free: 1.672 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.0962, allocations: 1.027 MB / 204.3 MB, free: 0.6211 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.37e-06/0.09624, allocations: 0 / 204.3 MB, free: 0.6211 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1207/0.2169, allocations: 1.225 MB / 205.5 MB, free: 24.59 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003544/0.2173, allocations: 180.9 kB / 205.7 MB, free: 24.49 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.2175, allocations: 25.41 kB / 205.7 MB, free: 24.49 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008701/0.2184, allocations: 140.8 kB / 205.8 MB, free: 24.49 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004037/0.2188, allocations: 143.7 kB / 206 MB, free: 24.49 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.671e-05/0.2189, allocations: 30.28 kB / 206 MB, free: 24.49 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003236/0.2192, allocations: 228.2 kB / 206.2 MB, free: 24.4 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.98e-07/0.2193, allocations: 3.531 kB / 206.2 MB, free: 24.4 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006691/0.2199, allocations: 148.2 kB / 206.4 MB, free: 24.4 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.000255/0.2202, allocations: 148.1 kB / 206.5 MB, free: 24.3 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002066/0.2223, allocations: 0.744 MB / 207.3 MB, free: 24.23 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.085e-06/0.2223, allocations: 1.281 kB / 207.3 MB, free: 24.23 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.2234, allocations: 409.5 kB / 207.7 MB, free: 24.12 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.2241, allocations: 71.38 kB / 207.7 MB, free: 24.1 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.2275, allocations: 1.668 MB / 209.4 MB, free: 23.1 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.2279, allocations: 0.8489 MB / 210.3 MB, free: 22.4 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.2281, allocations: 39 kB / 210.3 MB, free: 22.39 MB / 170.7 MB Notification: Performance of SimCode: time 1.694e-06/0.2281, allocations: 1 kB / 210.3 MB, free: 22.39 MB / 170.7 MB Notification: Performance of Templates: time 0.01264/0.2408, allocations: 7.444 MB / 217.7 MB, free: 19.23 MB / 170.7 MB