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 1.098/1.098, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003737, allocations: 4 kB / 158.4 MB, free: 15.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06764/0.06806, allocations: 25.17 MB / 183.6 MB, free: 5.891 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2193/0.2875, allocations: 34.66 MB / 218.3 MB, free: 6.508 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.2878, allocations: 62.52 kB / 218.3 MB, free: 6.496 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01457/0.3024, allocations: 3.587 MB / 221.9 MB, free: 5.074 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3025, allocations: 0 / 221.9 MB, free: 5.074 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.3025, allocations: 7.625 kB / 221.9 MB, free: 5.074 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.0008516/0.3033, allocations: 0.4963 MB / 222.4 MB, free: 4.617 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3034, allocations: 15.12 kB / 222.4 MB, free: 4.613 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.717e-05/0.3035, allocations: 57.41 kB / 222.5 MB, free: 4.566 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.3036, allocations: 28.16 kB / 222.5 MB, free: 4.555 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.3038, allocations: 212.9 kB / 222.7 MB, free: 4.336 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.3038, allocations: 19.09 kB / 222.7 MB, free: 4.332 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.3039, allocations: 26 kB / 222.8 MB, free: 4.328 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005259/0.3044, allocations: 217.5 kB / 223 MB, free: 4.238 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.3045, allocations: 0 / 223 MB, free: 4.238 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/0.3045, allocations: 11.33 kB / 223 MB, free: 4.234 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.3045, allocations: 7.625 kB / 223 MB, free: 4.234 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000468/0.305, allocations: 147.8 kB / 223.1 MB, free: 4.207 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.3066, allocations: 0.7945 MB / 223.9 MB, free: 3.641 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000546/0.3071, allocations: 190.9 kB / 224.1 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.3072, allocations: 4.062 kB / 224.1 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.3072, allocations: 41.88 kB / 224.2 MB, free: 3.527 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 2.885e-06/0.3072, allocations: 3.938 kB / 224.2 MB, free: 3.523 MB / 170.7 MB Notification: Performance of matching and sorting (n=25): time 0.002068/0.3093, allocations: 0.8584 MB / 225 MB, free: 2.973 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.3094, allocations: 77.11 kB / 225.1 MB, free: 2.879 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.3096, allocations: 160.2 kB / 225.3 MB, free: 2.777 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.3096, allocations: 28.77 kB / 225.3 MB, free: 2.746 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.362e-05/0.3097, allocations: 207.5 kB / 225.5 MB, free: 2.562 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.218e-05/0.3098, allocations: 85.72 kB / 225.6 MB, free: 2.5 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.3098, allocations: 7.344 kB / 225.6 MB, free: 2.5 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.976e-05/0.3099, allocations: 315.7 kB / 225.9 MB, free: 2.188 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.3101, allocations: 68.73 kB / 225.9 MB, free: 2.176 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.3104, allocations: 117.3 kB / 226.1 MB, free: 2.113 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/0.3107, allocations: 85 kB / 226.1 MB, free: 2.105 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3107, allocations: 0 / 226.1 MB, free: 2.105 MB / 170.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006282/0.3114, allocations: 233.3 kB / 226.4 MB, free: 2.039 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3114, allocations: 5.656 kB / 226.4 MB, free: 2.039 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3114, allocations: 3.656 kB / 226.4 MB, free: 2.039 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.3114, allocations: 3.938 kB / 226.4 MB, free: 2.035 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/0.3119, allocations: 65.02 kB / 226.5 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3119, allocations: 11.91 kB / 226.5 MB, free: 2.016 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.3121, allocations: 11 kB / 226.5 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.3122, allocations: 9.312 kB / 226.5 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.0001581/0.3123, allocations: 141.6 kB / 226.6 MB, free: 1.891 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.427e-05/0.3124, allocations: 19.19 kB / 226.6 MB, free: 1.879 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.627e-05/0.3125, allocations: 41.3 kB / 226.7 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3125, allocations: 0 / 226.7 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3125, allocations: 7.844 kB / 226.7 MB, free: 1.859 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.3125, allocations: 0 / 226.7 MB, free: 1.859 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.3136, allocations: 0.5728 MB / 227.3 MB, free: 1.453 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3137, allocations: 4.094 kB / 227.3 MB, free: 1.449 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.3142, allocations: 54.22 kB / 227.3 MB, free: 1.441 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.3142, allocations: 3.844 kB / 227.3 MB, free: 1.441 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.3142, allocations: 6.25 kB / 227.3 MB, free: 1.441 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.305e-06/0.3142, allocations: 7.781 kB / 227.3 MB, free: 1.438 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3142, allocations: 0 / 227.3 MB, free: 1.438 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008706/0.3151, allocations: 0.5411 MB / 227.9 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.3152, allocations: 111 kB / 228 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.576e-05/0.3153, allocations: 7.781 kB / 228 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.3156, allocations: 11.14 kB / 228 MB, free: 0.9688 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/0.3157, allocations: 19.45 kB / 228 MB, free: 0.9609 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.3157, allocations: 7.5 kB / 228 MB, free: 0.9609 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001178/0.3158, allocations: 144.1 kB / 228.2 MB, free: 0.8633 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3158, allocations: 0 / 228.2 MB, free: 0.8633 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004552/0.3163, allocations: 48.53 kB / 228.2 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.001299/0.3176, allocations: 1.354 MB / 229.6 MB, free: 15.71 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006206/0.3182, allocations: 174.9 kB / 229.7 MB, free: 15.69 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.3183, allocations: 192 / 229.7 MB, free: 15.69 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.3185, allocations: 101.5 kB / 229.8 MB, free: 15.67 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005134/0.3191, allocations: 30.66 kB / 229.9 MB, free: 15.66 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/0.3228, allocations: 2.204 MB / 232.1 MB, free: 14.02 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.3233, allocations: 0.7504 MB / 232.8 MB, free: 13.29 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.3235, allocations: 69.72 kB / 232.9 MB, free: 13.27 MB / 186.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3235, allocations: 3.938 kB / 232.9 MB, free: 13.27 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.711/3.035, allocations: 3.443 MB / 236.3 MB, free: 10.29 MB / 186.7 MB