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: translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadModel(Modelica): time 1.095/1.095, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.0002501, allocations: 8 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05354/0.05381, allocations: 25.16 MB / 184 MB, free: 6.031 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/0.266, allocations: 34.65 MB / 218.7 MB, free: 6.414 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.2663, allocations: 66.88 kB / 218.8 MB, free: 6.406 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01374/0.28, allocations: 3.603 MB / 222.4 MB, free: 4.965 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2801, allocations: 4 kB / 222.4 MB, free: 4.961 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.2801, allocations: 3.656 kB / 222.4 MB, free: 4.961 MB / 170.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.000776/0.2809, allocations: 496.2 kB / 222.8 MB, free: 4.516 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2809, allocations: 11.75 kB / 222.9 MB, free: 4.512 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.281, allocations: 23.34 kB / 222.9 MB, free: 4.5 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.2813, allocations: 227.7 kB / 223.1 MB, free: 4.273 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.2813, allocations: 11.5 kB / 223.1 MB, free: 4.273 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.2814, allocations: 22.53 kB / 223.1 MB, free: 4.27 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005137/0.2819, allocations: 216.1 kB / 223.3 MB, free: 4.188 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.2819, allocations: 0 / 223.3 MB, free: 4.188 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.282, allocations: 15.38 kB / 223.4 MB, free: 4.176 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.282, allocations: 7.844 kB / 223.4 MB, free: 4.176 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004745/0.2825, allocations: 144.6 kB / 223.5 MB, free: 4.152 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.2839, allocations: 0.7882 MB / 224.3 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/0.2845, allocations: 202.8 kB / 224.5 MB, free: 3.516 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.2845, allocations: 7.844 kB / 224.5 MB, free: 3.512 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.2845, allocations: 37.72 kB / 224.5 MB, free: 3.473 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 2.455e-06/0.2846, allocations: 0 / 224.5 MB, free: 3.473 MB / 170.7 MB Notification: Performance of matching and sorting (n=25): time 0.002005/0.2866, allocations: 0.8573 MB / 225.4 MB, free: 2.922 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.2866, allocations: 77.11 kB / 225.5 MB, free: 2.828 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.2868, allocations: 188 kB / 225.7 MB, free: 2.703 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.2868, allocations: 28.52 kB / 225.7 MB, free: 2.672 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.332e-05/0.2869, allocations: 204 kB / 225.9 MB, free: 2.496 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.905e-05/0.287, allocations: 90.58 kB / 226 MB, free: 2.434 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.566e-05/0.287, allocations: 3.312 kB / 226 MB, free: 2.434 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.083e-05/0.2871, allocations: 322.5 kB / 226.3 MB, free: 2.117 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.2873, allocations: 64.12 kB / 226.4 MB, free: 2.109 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.2876, allocations: 117.2 kB / 226.5 MB, free: 2.047 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.2879, allocations: 79.48 kB / 226.5 MB, free: 2.039 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2879, allocations: 0 / 226.5 MB, free: 2.039 MB / 170.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006244/0.2886, allocations: 240.1 kB / 226.8 MB, free: 1.969 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2886, allocations: 9.656 kB / 226.8 MB, free: 1.965 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2886, allocations: 0 / 226.8 MB, free: 1.965 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.2886, allocations: 3.938 kB / 226.8 MB, free: 1.965 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/0.2891, allocations: 66.34 kB / 226.9 MB, free: 1.949 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.2891, allocations: 0 / 226.9 MB, free: 1.949 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.2893, allocations: 15.88 kB / 226.9 MB, free: 1.945 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.2893, allocations: 13.61 kB / 226.9 MB, free: 1.941 MB / 170.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 () * 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.0001431/0.2895, allocations: 140.2 kB / 227 MB, free: 1.82 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.252e-05/0.2896, allocations: 16.97 kB / 227 MB, free: 1.812 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-05/0.2897, allocations: 28.22 kB / 227.1 MB, free: 1.809 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2897, allocations: 3.812 kB / 227.1 MB, free: 1.809 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.2897, allocations: 0 / 227.1 MB, free: 1.809 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.2897, allocations: 7.828 kB / 227.1 MB, free: 1.805 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.2907, allocations: 0.5751 MB / 227.7 MB, free: 1.395 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2907, allocations: 5.25 kB / 227.7 MB, free: 1.391 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004983/0.2912, allocations: 61.06 kB / 227.7 MB, free: 1.379 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.2913, allocations: 2.562 kB / 227.7 MB, free: 1.379 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.2913, allocations: 9.766 kB / 227.7 MB, free: 1.375 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.2913, allocations: 2.5 kB / 227.7 MB, free: 1.375 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2913, allocations: 0.875 kB / 227.7 MB, free: 1.375 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008697/0.2922, allocations: 0.4959 MB / 228.2 MB, free: 1.09 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.2923, allocations: 106 kB / 228.3 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.2924, allocations: 11.11 kB / 228.3 MB, free: 0.9766 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.2927, allocations: 10.84 kB / 228.4 MB, free: 0.9766 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.499e-05/0.2927, allocations: 22.81 kB / 228.4 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.2928, allocations: 15.47 kB / 228.4 MB, free: 0.957 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.2929, allocations: 132.2 kB / 228.5 MB, free: 0.8672 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.2929, allocations: 4 kB / 228.5 MB, free: 0.8633 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004614/0.2934, allocations: 54.41 kB / 228.6 MB, free: 0.8633 MB / 170.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 () * Number of clocked 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.0001449/0.2935, allocations: 105.7 kB / 228.7 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.000577/0.2941, allocations: 181.8 kB / 228.9 MB, free: 0.7383 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2941, allocations: 0 / 228.9 MB, free: 0.7383 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002719/0.2944, allocations: 97.55 kB / 229 MB, free: 0.7188 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005197/0.295, allocations: 25.86 kB / 229 MB, free: 0.7148 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.2965, allocations: 0.857 MB / 229.8 MB, free: 44 kB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.297, allocations: 0.7449 MB / 230.6 MB, free: 15.32 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.2971, allocations: 22.84 kB / 230.6 MB, free: 15.31 MB / 186.7 MB Notification: Performance of SimCode: time 1.352e-06/0.2971, allocations: 4 kB / 230.6 MB, free: 15.31 MB / 186.7 MB Notification: Performance of Templates: time 0.006074/0.3032, allocations: 2.462 MB / 233.1 MB, free: 13.93 MB / 186.7 MB