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.ElasticBearing.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.ElasticBearing,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.176/1.176, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.0002833, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05701/0.05734, allocations: 25.18 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002988/0.06038, allocations: 1.593 MB / 185.1 MB, free: 4.324 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.06152, allocations: 491.5 kB / 185.6 MB, free: 3.84 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.06168, allocations: 7.938 kB / 185.6 MB, free: 3.832 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 6.004e-05/0.06175, allocations: 19.84 kB / 185.6 MB, free: 3.812 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.06201, allocations: 83.75 kB / 185.7 MB, free: 3.73 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000191/0.06222, allocations: 39.91 kB / 185.7 MB, free: 3.691 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003617/0.0626, allocations: 179.6 kB / 185.9 MB, free: 3.516 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.06282, allocations: 65.98 kB / 186 MB, free: 3.453 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.06298, allocations: 75.72 kB / 186.1 MB, free: 3.379 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.06316, allocations: 95.59 kB / 186.1 MB, free: 3.285 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.429e-05/0.06321, allocations: 12 kB / 186.2 MB, free: 3.273 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.344e-05/0.06328, allocations: 12 kB / 186.2 MB, free: 3.262 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 4.669e-05/0.06333, allocations: 31.84 kB / 186.2 MB, free: 3.23 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 9.332e-05/0.06344, allocations: 73.58 kB / 186.3 MB, free: 3.152 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.06374, allocations: 183.4 kB / 186.4 MB, free: 2.973 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.06375, allocations: 0 / 186.4 MB, free: 2.973 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.06376, allocations: 0 / 186.4 MB, free: 2.973 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.06378, allocations: 0 / 186.4 MB, free: 2.973 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000977/0.06476, allocations: 491 kB / 186.9 MB, free: 2.445 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.06482, allocations: 8.031 kB / 186.9 MB, free: 2.438 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.334e-05/0.06492, allocations: 62.48 kB / 187 MB, free: 2.367 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.117e-05/0.065, allocations: 23.72 kB / 187 MB, free: 2.344 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.06533, allocations: 219.3 kB / 187.2 MB, free: 2.09 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.06537, allocations: 20.44 kB / 187.3 MB, free: 2.07 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.743e-05/0.06545, allocations: 23.98 kB / 187.3 MB, free: 2.047 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006311/0.06609, allocations: 207.2 kB / 187.5 MB, free: 1.84 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.06613, allocations: 3.984 kB / 187.5 MB, free: 1.836 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/0.06617, allocations: 8 kB / 187.5 MB, free: 1.828 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.06619, allocations: 8 kB / 187.5 MB, free: 1.82 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006134/0.06682, allocations: 157.6 kB / 187.7 MB, free: 1.668 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.0683, allocations: 0.6348 MB / 188.3 MB, free: 0.9805 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006542/0.06898, allocations: 183 kB / 188.5 MB, free: 0.793 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.06903, allocations: 4.188 kB / 188.5 MB, free: 0.7891 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.06907, allocations: 34.75 kB / 188.5 MB, free: 0.7461 MB / 154.7 MB Notification: Performance of pre-optimization done (n=22): time 3.727e-06/0.06908, allocations: 0 / 188.5 MB, free: 0.7461 MB / 154.7 MB Notification: Performance of matching and sorting (n=24): time 0.002644/0.07174, allocations: 0.9221 MB / 189.4 MB, free: 15.73 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.07182, allocations: 55.41 kB / 189.5 MB, free: 15.67 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.07203, allocations: 154.2 kB / 189.6 MB, free: 15.51 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.07207, allocations: 29.64 kB / 189.7 MB, free: 15.47 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.07221, allocations: 206.7 kB / 189.9 MB, free: 15.27 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.327e-05/0.07231, allocations: 86.8 kB / 189.9 MB, free: 15.18 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.07234, allocations: 4 kB / 190 MB, free: 15.18 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.0725, allocations: 326.8 kB / 190.3 MB, free: 14.85 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.0728, allocations: 71.97 kB / 190.3 MB, free: 14.78 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.07315, allocations: 111.3 kB / 190.4 MB, free: 14.66 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.0735, allocations: 88.8 kB / 190.5 MB, free: 14.57 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.07351, allocations: 0 / 190.5 MB, free: 14.57 MB / 170.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007732/0.07429, allocations: 241.4 kB / 190.8 MB, free: 14.33 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.07433, allocations: 4 kB / 190.8 MB, free: 14.33 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.07435, allocations: 4 kB / 190.8 MB, free: 14.32 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.07438, allocations: 0 / 190.8 MB, free: 14.32 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.0749, allocations: 75.89 kB / 190.9 MB, free: 14.25 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.07493, allocations: 4 kB / 190.9 MB, free: 14.25 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.07513, allocations: 12 kB / 190.9 MB, free: 14.23 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.07517, allocations: 8.031 kB / 190.9 MB, free: 14.23 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002048/0.07538, allocations: 145.7 kB / 191 MB, free: 14.07 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.768e-05/0.07545, allocations: 19.8 kB / 191 MB, free: 14.05 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.451e-05/0.07554, allocations: 17.19 kB / 191.1 MB, free: 14.04 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.07556, allocations: 4 kB / 191.1 MB, free: 14.03 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.07557, allocations: 0 / 191.1 MB, free: 14.03 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.07558, allocations: 0 / 191.1 MB, free: 14.03 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.07704, allocations: 0.6501 MB / 191.7 MB, free: 13.32 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.07709, allocations: 0 / 191.7 MB, free: 13.32 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006264/0.07772, allocations: 79.95 kB / 191.8 MB, free: 13.24 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.677e-06/0.07775, allocations: 0 / 191.8 MB, free: 13.24 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.07779, allocations: 8 kB / 191.8 MB, free: 13.23 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.79e-06/0.0778, allocations: 0 / 191.8 MB, free: 13.23 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.671e-05/0.07783, allocations: 7.953 kB / 191.8 MB, free: 13.22 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.07896, allocations: 412.8 kB / 192.2 MB, free: 12.8 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.783e-05/0.07907, allocations: 88.92 kB / 192.3 MB, free: 12.69 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.07913, allocations: 8 kB / 192.3 MB, free: 12.68 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.07939, allocations: 19.98 kB / 192.3 MB, free: 12.66 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.018e-05/0.07948, allocations: 23.81 kB / 192.3 MB, free: 12.64 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.07952, allocations: 8 kB / 192.4 MB, free: 12.63 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.07965, allocations: 111.2 kB / 192.5 MB, free: 12.52 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.07967, allocations: 4 kB / 192.5 MB, free: 12.52 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004064/0.08008, allocations: 48 kB / 192.5 MB, free: 12.47 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001403/0.0815, allocations: 0.9602 MB / 193.5 MB, free: 11.48 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0006952/0.08222, allocations: 188.7 kB / 193.7 MB, free: 11.3 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.08224, allocations: 8.188 kB / 193.7 MB, free: 11.29 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003361/0.08259, allocations: 91.89 kB / 193.8 MB, free: 11.2 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.08309, allocations: 43.91 kB / 193.8 MB, free: 11.16 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.08702, allocations: 1.669 MB / 195.5 MB, free: 9.406 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.08747, allocations: 0.7482 MB / 196.2 MB, free: 8.629 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.08765, allocations: 67.41 kB / 196.3 MB, free: 8.562 MB / 170.7 MB Notification: Performance of SimCode: time 1.092e-06/0.08766, allocations: 0 / 196.3 MB, free: 8.562 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.471/2.559, allocations: 3.394 MB / 199.7 MB, free: 5.164 MB / 170.7 MB