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.161/1.161, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.611e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1732, allocations: 25.15 MB / 179.5 MB, free: 0.7227 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06453/0.2378, allocations: 34.59 MB / 214.1 MB, free: 14.44 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.2381, allocations: 67.97 kB / 214.2 MB, free: 14.37 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01565/0.2538, allocations: 3.566 MB / 217.7 MB, free: 10.8 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2538, allocations: 0 / 217.7 MB, free: 10.8 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.2539, allocations: 4 kB / 217.7 MB, free: 10.8 MB / 186.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.0009535/0.2548, allocations: 482.4 kB / 218.2 MB, free: 10.28 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.2549, allocations: 8.031 kB / 218.2 MB, free: 10.27 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.314e-05/0.255, allocations: 62.53 kB / 218.3 MB, free: 10.2 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.004e-05/0.2551, allocations: 23.72 kB / 218.3 MB, free: 10.18 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.2554, allocations: 215.3 kB / 218.5 MB, free: 9.922 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.2554, allocations: 16.44 kB / 218.5 MB, free: 9.906 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.619e-05/0.2555, allocations: 24 kB / 218.6 MB, free: 9.883 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005431/0.2561, allocations: 175.3 kB / 218.7 MB, free: 9.707 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/0.2561, allocations: 4 kB / 218.7 MB, free: 9.703 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.2561, allocations: 11.95 kB / 218.7 MB, free: 9.691 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.2562, allocations: 12 kB / 218.8 MB, free: 9.68 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003739/0.2566, allocations: 117.7 kB / 218.9 MB, free: 9.566 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.258, allocations: 0.6114 MB / 219.5 MB, free: 8.902 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007965/0.2588, allocations: 163.1 kB / 219.6 MB, free: 8.734 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003387/0.2592, allocations: 81.23 kB / 219.7 MB, free: 8.652 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.494e-05/0.2593, allocations: 12.11 kB / 219.7 MB, free: 8.641 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.707e-05/0.2593, allocations: 34.75 kB / 219.8 MB, free: 8.598 MB / 186.7 MB Notification: Performance of pre-optimization done (n=22): time 6.953e-06/0.2594, allocations: 4 kB / 219.8 MB, free: 8.594 MB / 186.7 MB Notification: Performance of matching and sorting (n=24): time 0.002628/0.262, allocations: 0.7551 MB / 220.5 MB, free: 7.746 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.2622, allocations: 59.39 kB / 220.6 MB, free: 7.676 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.2624, allocations: 138.1 kB / 220.7 MB, free: 7.535 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.2625, allocations: 25.7 kB / 220.7 MB, free: 7.504 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.2627, allocations: 202.8 kB / 220.9 MB, free: 7.301 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.2629, allocations: 90.66 kB / 221 MB, free: 7.211 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.902e-05/0.2629, allocations: 0 / 221 MB, free: 7.211 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.2631, allocations: 330.8 kB / 221.4 MB, free: 6.879 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.2634, allocations: 48 kB / 221.4 MB, free: 6.832 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.2638, allocations: 99.34 kB / 221.5 MB, free: 6.723 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.2641, allocations: 72.08 kB / 221.6 MB, free: 6.652 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.2641, allocations: 0 / 221.6 MB, free: 6.652 MB / 186.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007731/0.2649, allocations: 201.4 kB / 221.8 MB, free: 6.449 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.265, allocations: 8 kB / 221.8 MB, free: 6.441 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.265, allocations: 0 / 221.8 MB, free: 6.441 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.911e-05/0.2651, allocations: 4 kB / 221.8 MB, free: 6.438 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007575/0.2658, allocations: 75.89 kB / 221.9 MB, free: 6.363 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.2659, allocations: 4.094 kB / 221.9 MB, free: 6.359 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.2662, allocations: 15.98 kB / 221.9 MB, free: 6.344 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/0.2663, allocations: 8 kB / 221.9 MB, free: 6.336 MB / 186.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 () * 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.0001643/0.2665, allocations: 119.6 kB / 222 MB, free: 6.215 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.2666, allocations: 15.81 kB / 222 MB, free: 6.199 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.2667, allocations: 20.75 kB / 222 MB, free: 6.184 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.2668, allocations: 4 kB / 222 MB, free: 6.18 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.2668, allocations: 0 / 222 MB, free: 6.18 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.2668, allocations: 7.984 kB / 222 MB, free: 6.172 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.2687, allocations: 0.613 MB / 222.7 MB, free: 5.488 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.2688, allocations: 0 / 222.7 MB, free: 5.488 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009436/0.2697, allocations: 67.91 kB / 222.7 MB, free: 5.422 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.2698, allocations: 4.062 kB / 222.7 MB, free: 5.418 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.2698, allocations: 11.98 kB / 222.7 MB, free: 5.406 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.2699, allocations: 0 / 222.7 MB, free: 5.406 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.72e-05/0.2699, allocations: 8 kB / 222.7 MB, free: 5.398 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.271, allocations: 397.2 kB / 223.1 MB, free: 4.98 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.2712, allocations: 88.92 kB / 223.2 MB, free: 4.875 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.2713, allocations: 12.02 kB / 223.2 MB, free: 4.863 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003858/0.2717, allocations: 11.98 kB / 223.2 MB, free: 4.852 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.2718, allocations: 15.98 kB / 223.3 MB, free: 4.836 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.2719, allocations: 7.984 kB / 223.3 MB, free: 4.828 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001973/0.2721, allocations: 119.4 kB / 223.4 MB, free: 4.711 MB / 186.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.2721, allocations: 0 / 223.4 MB, free: 4.711 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007567/0.2729, allocations: 59.98 kB / 223.4 MB, free: 4.652 MB / 186.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 () * 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.001701/0.2746, allocations: 1.06 MB / 224.5 MB, free: 3.551 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0008107/0.2755, allocations: 155.8 kB / 224.7 MB, free: 3.398 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.2755, allocations: 4 kB / 224.7 MB, free: 3.395 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003432/0.2759, allocations: 71.94 kB / 224.7 MB, free: 3.324 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007209/0.2766, allocations: 32.92 kB / 224.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.2799, allocations: 0.7511 MB / 225.5 MB, free: 2.492 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.2805, allocations: 0.7483 MB / 226.3 MB, free: 1.719 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.2808, allocations: 67.42 kB / 226.3 MB, free: 1.652 MB / 186.7 MB Notification: Performance of SimCode: time 1.894e-06/0.2809, allocations: 0 / 226.3 MB, free: 1.652 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.564/2.845, allocations: 3.39 MB / 229.7 MB, free: 14.26 MB / 202.7 MB