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.Friction.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.Friction,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.211/1.211, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003912/0.0003914, allocations: 12 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05855/0.059, allocations: 25.17 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003693/0.06274, allocations: 2.113 MB / 185.6 MB, free: 3.797 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.06495, allocations: 0.8004 MB / 186.4 MB, free: 2.992 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002484/0.06525, allocations: 4 kB / 186.4 MB, free: 2.988 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.06543, allocations: 35.7 kB / 186.5 MB, free: 2.953 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000388/0.06583, allocations: 135.6 kB / 186.6 MB, free: 2.82 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006154/0.06647, allocations: 143.8 kB / 186.7 MB, free: 2.68 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007073/0.06719, allocations: 380.5 kB / 187.1 MB, free: 2.309 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002747/0.06748, allocations: 98.88 kB / 187.2 MB, free: 2.211 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004585/0.06796, allocations: 219.3 kB / 187.4 MB, free: 1.996 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000494/0.06847, allocations: 247 kB / 187.7 MB, free: 1.754 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.06859, allocations: 24 kB / 187.7 MB, free: 1.73 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002483/0.06885, allocations: 55.97 kB / 187.7 MB, free: 1.676 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.06901, allocations: 87.64 kB / 187.8 MB, free: 1.59 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.06916, allocations: 93.52 kB / 187.9 MB, free: 1.492 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006906/0.06986, allocations: 394.9 kB / 188.3 MB, free: 1.105 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.06989, allocations: 4 kB / 188.3 MB, free: 1.102 MB / 154.7 MB Notification: Performance of FrontEnd: time 4.077e-06/0.0699, allocations: 3.984 kB / 188.3 MB, free: 1.098 MB / 154.7 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.06992, allocations: 0 / 188.3 MB, free: 1.098 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.002255/0.07219, allocations: 0.7055 MB / 189 MB, free: 352 kB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.07227, allocations: 12.03 kB / 189 MB, free: 340 kB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000255/0.07253, allocations: 87.41 kB / 189.1 MB, free: 240 kB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.07269, allocations: 47.44 kB / 189.2 MB, free: 192 kB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/0.07328, allocations: 298.2 kB / 189.4 MB, free: 15.85 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.666e-05/0.07334, allocations: 29 kB / 189.5 MB, free: 15.82 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.07347, allocations: 40 kB / 189.5 MB, free: 15.79 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.07489, allocations: 466.3 kB / 190 MB, free: 15.32 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.743e-05/0.07496, allocations: 7.891 kB / 190 MB, free: 15.31 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.684e-05/0.07504, allocations: 16 kB / 190 MB, free: 15.3 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.07507, allocations: 12 kB / 190 MB, free: 15.29 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.07669, allocations: 455.7 kB / 190.4 MB, free: 14.84 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003473/0.08019, allocations: 1.125 MB / 191.6 MB, free: 13.66 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.08158, allocations: 351.5 kB / 191.9 MB, free: 13.31 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.355e-05/0.08169, allocations: 4.375 kB / 191.9 MB, free: 13.3 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.08174, allocations: 34.94 kB / 192 MB, free: 13.26 MB / 170.7 MB Notification: Performance of pre-optimization done (n=45): time 3.907e-06/0.08176, allocations: 4 kB / 192 MB, free: 13.26 MB / 170.7 MB Notification: Performance of matching and sorting (n=51): time 0.008596/0.09036, allocations: 2.288 MB / 194.2 MB, free: 10.84 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.09047, allocations: 63.73 kB / 194.3 MB, free: 10.76 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004558/0.09094, allocations: 279 kB / 194.6 MB, free: 10.48 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 9.965e-05/0.09105, allocations: 41.69 kB / 194.6 MB, free: 10.43 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.09125, allocations: 239 kB / 194.9 MB, free: 10.2 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.09149, allocations: 173.6 kB / 195 MB, free: 10.03 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.09156, allocations: 12 kB / 195 MB, free: 10.02 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.09174, allocations: 334.8 kB / 195.4 MB, free: 9.68 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008493/0.0926, allocations: 229 kB / 195.6 MB, free: 9.457 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008638/0.09348, allocations: 271.8 kB / 195.9 MB, free: 9.184 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007008/0.0942, allocations: 194.1 kB / 196 MB, free: 8.996 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.09422, allocations: 0 / 196 MB, free: 8.996 MB / 170.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002564/0.09679, allocations: 0.6994 MB / 196.7 MB, free: 8.285 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.09687, allocations: 10.97 kB / 196.8 MB, free: 8.277 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.09689, allocations: 0 / 196.8 MB, free: 8.277 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.09811, allocations: 377.5 kB / 197.1 MB, free: 7.902 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/0.0988, allocations: 87.83 kB / 197.2 MB, free: 7.816 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.1009, allocations: 1.374 MB / 198.6 MB, free: 6.391 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009991/0.1019, allocations: 100 kB / 198.7 MB, free: 6.293 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.526e-05/0.102, allocations: 16 kB / 198.7 MB, free: 6.277 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.0003823/0.1024, allocations: 169.7 kB / 198.9 MB, free: 6.102 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.1026, allocations: 39.53 kB / 198.9 MB, free: 6.062 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.1027, allocations: 55.69 kB / 199 MB, free: 6.008 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.118e-06/0.1028, allocations: 8 kB / 199 MB, free: 6 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.1028, allocations: 0 / 199 MB, free: 6 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.1028, allocations: 7.922 kB / 199 MB, free: 5.992 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004435/0.1072, allocations: 1.376 MB / 200.3 MB, free: 4.539 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.1073, allocations: 4 kB / 200.3 MB, free: 4.535 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007327/0.108, allocations: 71.91 kB / 200.4 MB, free: 4.465 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.1091, allocations: 357.6 kB / 200.8 MB, free: 4.109 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.428e-05/0.1092, allocations: 19.98 kB / 200.8 MB, free: 4.09 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.1111, allocations: 1.343 MB / 202.1 MB, free: 2.695 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.1112, allocations: 0 / 202.1 MB, free: 2.695 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.1146, allocations: 1.016 MB / 203.1 MB, free: 1.641 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000366/0.115, allocations: 156.6 kB / 203.3 MB, free: 1.469 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.1152, allocations: 27.98 kB / 203.3 MB, free: 1.441 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007538/0.116, allocations: 72.06 kB / 203.4 MB, free: 1.371 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/0.1163, allocations: 107.8 kB / 203.5 MB, free: 1.266 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.487e-05/0.1164, allocations: 31.92 kB / 203.5 MB, free: 1.234 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003233/0.1168, allocations: 194 kB / 203.7 MB, free: 1.043 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.1168, allocations: 0 / 203.7 MB, free: 1.043 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006875/0.1175, allocations: 120 kB / 203.8 MB, free: 0.9258 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.1663/0.2838, allocations: 1.589 MB / 205.4 MB, free: 23.85 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.003301/0.2872, allocations: 0.5577 MB / 206 MB, free: 23.85 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.2873, allocations: 0 / 206 MB, free: 23.85 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.2893, allocations: 326.1 kB / 206.3 MB, free: 23.84 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.2906, allocations: 56.25 kB / 206.4 MB, free: 23.84 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01915/0.3098, allocations: 3.503 MB / 209.9 MB, free: 22.58 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006514/0.3105, allocations: 0.8244 MB / 210.7 MB, free: 21.88 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005019/0.3111, allocations: 125 kB / 210.8 MB, free: 21.79 MB / 170.7 MB Notification: Performance of SimCode: time 2.595e-06/0.3111, allocations: 3.281 kB / 210.8 MB, free: 21.79 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.846/3.157, allocations: 9.145 MB / 220 MB, free: 16.93 MB / 170.7 MB