Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9887/0.9887, allocations: 111.2 MB / 124.2 MB, free: 11.22 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.097e-05/3.12e-05, allocations: 0 / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.182, allocations: 25.16 MB / 179.5 MB, free: 0.8047 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0607/0.2428, allocations: 34.57 MB / 214.1 MB, free: 14.56 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.2431, allocations: 67.97 kB / 214.2 MB, free: 14.49 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01561/0.2587, allocations: 3.603 MB / 217.8 MB, free: 10.88 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2587, allocations: 0 / 217.8 MB, free: 10.88 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.2588, allocations: 4 kB / 217.8 MB, free: 10.88 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009125/0.2597, allocations: 482.2 kB / 218.2 MB, free: 10.36 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.2598, allocations: 15.97 kB / 218.3 MB, free: 10.34 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.409e-05/0.2599, allocations: 54.55 kB / 218.3 MB, free: 10.28 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.635e-05/0.26, allocations: 27.72 kB / 218.3 MB, free: 10.25 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.2603, allocations: 215.7 kB / 218.5 MB, free: 10 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.2603, allocations: 12.44 kB / 218.6 MB, free: 9.988 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.926e-05/0.2604, allocations: 20 kB / 218.6 MB, free: 9.969 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005092/0.2609, allocations: 205.9 kB / 218.8 MB, free: 9.758 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.2609, allocations: 3.906 kB / 218.8 MB, free: 9.754 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.261, allocations: 7.953 kB / 218.8 MB, free: 9.746 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.261, allocations: 8 kB / 218.8 MB, free: 9.738 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003725/0.2614, allocations: 125.2 kB / 218.9 MB, free: 9.617 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.2632, allocations: 0.7891 MB / 219.7 MB, free: 8.762 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.2638, allocations: 177.1 kB / 219.9 MB, free: 8.57 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.2641, allocations: 89.72 kB / 220 MB, free: 8.477 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.895e-05/0.2641, allocations: 11.98 kB / 220 MB, free: 8.465 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.2642, allocations: 30.56 kB / 220 MB, free: 8.426 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 3.046e-06/0.2642, allocations: 0 / 220 MB, free: 8.426 MB / 186.7 MB Notification: Performance of matching and sorting (n=25): time 0.001824/0.266, allocations: 0.7517 MB / 220.8 MB, free: 7.582 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.291e-05/0.2661, allocations: 85.11 kB / 220.8 MB, free: 7.48 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/0.2663, allocations: 155.7 kB / 221 MB, free: 7.316 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.2664, allocations: 33.7 kB / 221 MB, free: 7.277 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.2665, allocations: 194.9 kB / 221.2 MB, free: 7.086 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.2667, allocations: 90.73 kB / 221.3 MB, free: 6.996 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.2667, allocations: 7.938 kB / 221.3 MB, free: 6.988 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2668, allocations: 330.8 kB / 221.6 MB, free: 6.656 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.267, allocations: 48 kB / 221.7 MB, free: 6.609 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002188/0.2672, allocations: 96.27 kB / 221.8 MB, free: 6.5 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.2675, allocations: 63.97 kB / 221.8 MB, free: 6.438 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2675, allocations: 224 / 221.8 MB, free: 6.438 MB / 186.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005389/0.268, allocations: 205.5 kB / 222 MB, free: 6.23 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.2681, allocations: 11.94 kB / 222.1 MB, free: 6.219 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2681, allocations: 0 / 222.1 MB, free: 6.219 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.2681, allocations: 4 kB / 222.1 MB, free: 6.215 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.2686, allocations: 59.91 kB / 222.1 MB, free: 6.156 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.2687, allocations: 4 kB / 222.1 MB, free: 6.152 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.2689, allocations: 19.83 kB / 222.1 MB, free: 6.133 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.117e-05/0.2689, allocations: 15.94 kB / 222.2 MB, free: 6.117 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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.000132/0.2691, allocations: 126.1 kB / 222.3 MB, free: 5.988 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.289e-05/0.2692, allocations: 15.81 kB / 222.3 MB, free: 5.973 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.738e-05/0.2693, allocations: 29.64 kB / 222.3 MB, free: 5.941 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2693, allocations: 4 kB / 222.3 MB, free: 5.938 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.2693, allocations: 4 kB / 222.3 MB, free: 5.934 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.2693, allocations: 4 kB / 222.3 MB, free: 5.93 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.2705, allocations: 0.5711 MB / 222.9 MB, free: 5.293 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.2706, allocations: 0 / 222.9 MB, free: 5.293 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005139/0.2711, allocations: 59.91 kB / 223 MB, free: 5.234 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/0.2711, allocations: 3.984 kB / 223 MB, free: 5.23 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.2712, allocations: 8 kB / 223 MB, free: 5.223 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.2712, allocations: 4 kB / 223 MB, free: 5.219 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2712, allocations: 96 / 223 MB, free: 5.219 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008279/0.272, allocations: 0.4999 MB / 223.5 MB, free: 4.668 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.2722, allocations: 108.9 kB / 223.6 MB, free: 4.543 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.757e-05/0.2722, allocations: 8 kB / 223.6 MB, free: 4.535 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.2725, allocations: 8 kB / 223.6 MB, free: 4.527 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.463e-05/0.2726, allocations: 15.97 kB / 223.6 MB, free: 4.512 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.2726, allocations: 12 kB / 223.6 MB, free: 4.5 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001604/0.2728, allocations: 135.3 kB / 223.8 MB, free: 4.367 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2728, allocations: 4 kB / 223.8 MB, free: 4.363 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004551/0.2733, allocations: 44 kB / 223.8 MB, free: 4.32 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 25 * 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.001263/0.2746, allocations: 1.317 MB / 225.1 MB, free: 2.953 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004685/0.2751, allocations: 144.3 kB / 225.3 MB, free: 2.812 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2751, allocations: 0 / 225.3 MB, free: 2.812 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.2753, allocations: 84.17 kB / 225.3 MB, free: 2.73 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005132/0.2759, allocations: 33.2 kB / 225.4 MB, free: 2.699 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.2777, allocations: 0.6301 MB / 226 MB, free: 2.012 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.2781, allocations: 0.7521 MB / 226.8 MB, free: 1.234 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001793/0.2783, allocations: 67.41 kB / 226.8 MB, free: 1.168 MB / 186.7 MB Notification: Performance of SimCode: time 8.286e-06/0.2783, allocations: 4 kB / 226.8 MB, free: 1.164 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.801/3.079, allocations: 3.455 MB / 230.3 MB, free: 13.71 MB / 202.7 MB