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.Friction.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.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.213/1.213, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004611/0.0004615, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06836/0.06886, allocations: 25.17 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003287/0.0722, allocations: 2.113 MB / 185.5 MB, free: 3.891 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.07409, allocations: 0.8003 MB / 186.3 MB, free: 3.086 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002064/0.07434, allocations: 4 kB / 186.3 MB, free: 3.082 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.0745, allocations: 35.7 kB / 186.4 MB, free: 3.047 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003217/0.07483, allocations: 131.6 kB / 186.5 MB, free: 2.918 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.07534, allocations: 147.7 kB / 186.6 MB, free: 2.773 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005464/0.07591, allocations: 376.5 kB / 187 MB, free: 2.406 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.07616, allocations: 98.59 kB / 187.1 MB, free: 2.309 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003875/0.07656, allocations: 223.2 kB / 187.3 MB, free: 2.09 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003762/0.07696, allocations: 243 kB / 187.6 MB, free: 1.852 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 7.355e-05/0.07705, allocations: 24 kB / 187.6 MB, free: 1.828 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.07723, allocations: 55.97 kB / 187.6 MB, free: 1.773 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.07738, allocations: 95.69 kB / 187.7 MB, free: 1.68 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.07754, allocations: 97.45 kB / 187.8 MB, free: 1.578 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005516/0.0781, allocations: 383.2 kB / 188.2 MB, free: 1.203 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.338e-06/0.07812, allocations: 0 / 188.2 MB, free: 1.203 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.987e-06/0.07813, allocations: 0 / 188.2 MB, free: 1.203 MB / 154.7 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.07815, allocations: 0 / 188.2 MB, free: 1.203 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001566/0.07972, allocations: 0.7172 MB / 188.9 MB, free: 448 kB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.07978, allocations: 8.031 kB / 188.9 MB, free: 440 kB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.07991, allocations: 47.44 kB / 189 MB, free: 392 kB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005155/0.08044, allocations: 298.2 kB / 189.3 MB, free: 48 kB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.08051, allocations: 32.98 kB / 189.3 MB, free: 12 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.08065, allocations: 40.05 kB / 189.3 MB, free: 15.97 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.08181, allocations: 450.2 kB / 189.8 MB, free: 15.52 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.08187, allocations: 11.89 kB / 189.8 MB, free: 15.51 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.922e-05/0.08194, allocations: 19.88 kB / 189.8 MB, free: 15.49 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.08196, allocations: 12 kB / 189.8 MB, free: 15.48 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.0832, allocations: 447.7 kB / 190.3 MB, free: 15.05 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.08591, allocations: 1.098 MB / 191.4 MB, free: 13.89 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.08696, allocations: 362.2 kB / 191.7 MB, free: 13.53 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.857e-05/0.08703, allocations: 4.375 kB / 191.7 MB, free: 13.53 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/0.08708, allocations: 46.88 kB / 191.8 MB, free: 13.47 MB / 170.7 MB Notification: Performance of pre-optimization done (n=45): time 4.32e-06/0.0871, allocations: 0 / 191.8 MB, free: 13.47 MB / 170.7 MB Notification: Performance of matching and sorting (n=51): time 0.006481/0.09359, allocations: 2.28 MB / 194 MB, free: 11.06 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.09368, allocations: 59.84 kB / 194.1 MB, free: 10.99 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004173/0.09411, allocations: 271 kB / 194.4 MB, free: 10.71 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.56e-05/0.09422, allocations: 49.69 kB / 194.4 MB, free: 10.66 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.09441, allocations: 231.1 kB / 194.6 MB, free: 10.43 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.09464, allocations: 181.5 kB / 194.8 MB, free: 10.25 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.0947, allocations: 15.98 kB / 194.8 MB, free: 10.24 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.0949, allocations: 334.8 kB / 195.2 MB, free: 9.902 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006629/0.09557, allocations: 225 kB / 195.4 MB, free: 9.684 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000695/0.09628, allocations: 279.8 kB / 195.7 MB, free: 9.402 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005496/0.09685, allocations: 182.2 kB / 195.8 MB, free: 9.227 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.622e-06/0.09687, allocations: 0 / 195.8 MB, free: 9.227 MB / 170.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002081/0.09896, allocations: 0.7072 MB / 196.5 MB, free: 8.508 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.09902, allocations: 4 kB / 196.5 MB, free: 8.504 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.09904, allocations: 4.031 kB / 196.5 MB, free: 8.5 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009871/0.1, allocations: 373.5 kB / 196.9 MB, free: 8.129 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004474/0.1005, allocations: 83.89 kB / 197 MB, free: 8.047 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.1024, allocations: 1.374 MB / 198.4 MB, free: 6.621 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006175/0.103, allocations: 96.08 kB / 198.5 MB, free: 6.527 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.417e-05/0.1031, allocations: 19.98 kB / 198.5 MB, free: 6.508 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003373/0.1035, allocations: 165.7 kB / 198.6 MB, free: 6.332 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.1036, allocations: 39.53 kB / 198.7 MB, free: 6.293 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.1038, allocations: 55.69 kB / 198.7 MB, free: 6.238 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.352e-06/0.1038, allocations: 4 kB / 198.7 MB, free: 6.234 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.522e-06/0.1038, allocations: 0 / 198.7 MB, free: 6.234 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.533e-06/0.1038, allocations: 3.984 kB / 198.7 MB, free: 6.23 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003591/0.1074, allocations: 1.383 MB / 200.1 MB, free: 4.773 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.128e-06/0.1075, allocations: 3.938 kB / 200.1 MB, free: 4.77 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004814/0.108, allocations: 79.89 kB / 200.2 MB, free: 4.691 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009239/0.1089, allocations: 353.6 kB / 200.6 MB, free: 4.34 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.712e-05/0.1091, allocations: 23.97 kB / 200.6 MB, free: 4.316 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001729/0.1108, allocations: 1.335 MB / 201.9 MB, free: 2.93 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.076e-06/0.1108, allocations: 4.125 kB / 201.9 MB, free: 2.926 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/0.1136, allocations: 1.02 MB / 202.9 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.1139, allocations: 156.7 kB / 203.1 MB, free: 1.695 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.1141, allocations: 20 kB / 203.1 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005144/0.1146, allocations: 71.94 kB / 203.2 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.1149, allocations: 115.7 kB / 203.3 MB, free: 1.492 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/0.1149, allocations: 20.11 kB / 203.3 MB, free: 1.473 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002958/0.1153, allocations: 194 kB / 203.5 MB, free: 1.281 MB / 170.7 MB Notification: Performance of sort global known variables: time 9.38e-07/0.1153, allocations: 0 / 203.5 MB, free: 1.281 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006183/0.1159, allocations: 124 kB / 203.6 MB, free: 1.16 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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 Backend phase and start with SimCode phase: time 0.0002808/0.1162, allocations: 139.2 kB / 203.8 MB, free: 1.016 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.118, allocations: 0.5603 MB / 204.3 MB, free: 468 kB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.082e-06/0.118, allocations: 0 / 204.3 MB, free: 468 kB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009674/0.119, allocations: 316.1 kB / 204.6 MB, free: 152 kB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.1196, allocations: 56.86 kB / 204.7 MB, free: 92 kB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1182/0.2379, allocations: 1.726 MB / 206.4 MB, free: 24.46 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.2383, allocations: 0.8237 MB / 207.2 MB, free: 23.75 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.2384, allocations: 32.84 kB / 207.3 MB, free: 23.75 MB / 170.7 MB Notification: Performance of SimCode: time 2.039e-06/0.2385, allocations: 0 / 207.3 MB, free: 23.75 MB / 170.7 MB Notification: Performance of Templates: time 0.01251/0.251, allocations: 7.436 MB / 214.7 MB, free: 20.93 MB / 170.7 MB