Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.059/1.059, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004137, allocations: 11.94 kB / 158.3 MB, free: 15.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04805/0.0485, allocations: 25.16 MB / 183.5 MB, free: 5.957 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.2263, allocations: 34.67 MB / 218.2 MB, free: 6.465 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.2265, allocations: 61.31 kB / 218.2 MB, free: 6.457 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01278/0.2393, allocations: 3.589 MB / 221.8 MB, free: 5.027 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.542e-06/0.2394, allocations: 0 / 221.8 MB, free: 5.027 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.2394, allocations: 7.656 kB / 221.8 MB, free: 5.027 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.0006002/0.24, allocations: 0.4925 MB / 222.3 MB, free: 4.574 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.24, allocations: 7.75 kB / 222.3 MB, free: 4.574 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.2e-05/0.2401, allocations: 27.06 kB / 222.3 MB, free: 4.562 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.2403, allocations: 217.4 kB / 222.6 MB, free: 4.34 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.2404, allocations: 18.75 kB / 222.6 MB, free: 4.336 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.2404, allocations: 27.27 kB / 222.6 MB, free: 4.332 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.2409, allocations: 220.5 kB / 222.8 MB, free: 4.238 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.2409, allocations: 0 / 222.8 MB, free: 4.238 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/0.241, allocations: 14.8 kB / 222.8 MB, free: 4.234 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.608e-06/0.241, allocations: 3.844 kB / 222.8 MB, free: 4.234 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004114/0.2414, allocations: 147.2 kB / 223 MB, free: 4.207 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.2426, allocations: 0.7808 MB / 223.8 MB, free: 3.652 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004751/0.2431, allocations: 205.9 kB / 224 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.2432, allocations: 3.812 kB / 224 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.2432, allocations: 38.31 kB / 224 MB, free: 3.531 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 2.64e-06/0.2432, allocations: 0 / 224 MB, free: 3.531 MB / 170.7 MB Notification: Performance of matching and sorting (n=25): time 0.001787/0.245, allocations: 0.86 MB / 224.9 MB, free: 2.977 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.2451, allocations: 81.05 kB / 224.9 MB, free: 2.883 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.2452, allocations: 156.6 kB / 225.1 MB, free: 2.781 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.2453, allocations: 33.08 kB / 225.1 MB, free: 2.746 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.2454, allocations: 204.7 kB / 225.3 MB, free: 2.57 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.528e-05/0.2454, allocations: 86.69 kB / 225.4 MB, free: 2.508 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.2455, allocations: 4.75 kB / 225.4 MB, free: 2.508 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.751e-05/0.2455, allocations: 326.4 kB / 225.7 MB, free: 2.188 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.2458, allocations: 64.61 kB / 225.8 MB, free: 2.176 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.246, allocations: 108.9 kB / 225.9 MB, free: 2.121 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.2463, allocations: 87.06 kB / 226 MB, free: 2.109 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.641e-06/0.2463, allocations: 0 / 226 MB, free: 2.109 MB / 170.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005766/0.2469, allocations: 240.6 kB / 226.2 MB, free: 2.039 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2469, allocations: 3.125 kB / 226.2 MB, free: 2.039 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.2469, allocations: 7.156 kB / 226.2 MB, free: 2.035 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.247, allocations: 0 / 226.2 MB, free: 2.035 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.2473, allocations: 63.31 kB / 226.3 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.2473, allocations: 3.812 kB / 226.3 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.2475, allocations: 19.95 kB / 226.3 MB, free: 2.016 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.2475, allocations: 9.562 kB / 226.3 MB, free: 2.012 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.0001313/0.2477, allocations: 141 kB / 226.5 MB, free: 1.891 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.498e-05/0.2478, allocations: 19.03 kB / 226.5 MB, free: 1.883 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.364e-05/0.2478, allocations: 28.17 kB / 226.5 MB, free: 1.875 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.344e-06/0.2478, allocations: 3.688 kB / 226.5 MB, free: 1.875 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.904e-06/0.2479, allocations: 3.938 kB / 226.5 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.2479, allocations: 0 / 226.5 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009684/0.2488, allocations: 0.5807 MB / 227.1 MB, free: 1.457 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.281e-06/0.2489, allocations: 7.781 kB / 227.1 MB, free: 1.453 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/0.2493, allocations: 56.41 kB / 227.2 MB, free: 1.445 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.726e-06/0.2493, allocations: 96 / 227.2 MB, free: 1.445 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.2493, allocations: 10.22 kB / 227.2 MB, free: 1.441 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.796e-06/0.2493, allocations: 3.688 kB / 227.2 MB, free: 1.441 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.2494, allocations: 3.938 kB / 227.2 MB, free: 1.438 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007945/0.2502, allocations: 0.5317 MB / 227.7 MB, free: 1.094 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.2503, allocations: 119.5 kB / 227.8 MB, free: 0.9766 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.2503, allocations: 3.625 kB / 227.8 MB, free: 0.9766 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.2506, allocations: 11.22 kB / 227.8 MB, free: 0.9766 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.664e-05/0.2507, allocations: 19.34 kB / 227.9 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.2507, allocations: 15.62 kB / 227.9 MB, free: 0.9609 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001086/0.2508, allocations: 137.5 kB / 228 MB, free: 0.8672 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.86e-07/0.2508, allocations: 0 / 228 MB, free: 0.8672 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004833/0.2513, allocations: 49.78 kB / 228.1 MB, free: 0.8672 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.0001175/0.2515, allocations: 106.2 kB / 228.2 MB, free: 0.7734 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004796/0.2519, allocations: 186.4 kB / 228.3 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.75e-06/0.252, allocations: 1.219 kB / 228.3 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002145/0.2522, allocations: 96 kB / 228.4 MB, free: 0.7227 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.2526, allocations: 40.75 kB / 228.5 MB, free: 0.707 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.254, allocations: 0.8489 MB / 229.3 MB, free: 44 kB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.2545, allocations: 0.7529 MB / 230.1 MB, free: 15.32 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.012e-05/0.2546, allocations: 22.75 kB / 230.1 MB, free: 15.31 MB / 186.7 MB Notification: Performance of SimCode: time 1.838e-06/0.2546, allocations: 0 / 230.1 MB, free: 15.31 MB / 186.7 MB Notification: Performance of Templates: time 0.005187/0.2598, allocations: 2.472 MB / 232.6 MB, free: 13.8 MB / 186.7 MB