Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.PID_Controller.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.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.023/1.023, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.0002691, allocations: 4 kB / 158.4 MB, free: 15.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05859/0.05889, allocations: 25.18 MB / 183.6 MB, free: 5.883 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2153/0.2743, allocations: 38.09 MB / 221.7 MB, free: 5.293 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.2746, allocations: 64.89 kB / 221.7 MB, free: 5.289 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03166/0.3063, allocations: 7.899 MB / 229.6 MB, free: 1.25 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.3063, allocations: 4 kB / 229.7 MB, free: 1.246 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.101e-05/0.3063, allocations: 8 kB / 229.7 MB, free: 1.238 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001556/0.3079, allocations: 0.6832 MB / 230.3 MB, free: 0.5312 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.308, allocations: 12.03 kB / 230.4 MB, free: 0.5195 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.3081, allocations: 65.91 kB / 230.4 MB, free: 476 kB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.3082, allocations: 52.06 kB / 230.5 MB, free: 424 kB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000778/0.309, allocations: 347.7 kB / 230.8 MB, free: 64 kB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.19e-05/0.3091, allocations: 49.77 kB / 230.9 MB, free: 20 kB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.3092, allocations: 38.38 kB / 230.9 MB, free: 15.99 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3106, allocations: 412.6 kB / 231.3 MB, free: 15.67 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.3106, allocations: 7.938 kB / 231.3 MB, free: 15.67 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.204e-05/0.3107, allocations: 15.8 kB / 231.3 MB, free: 15.66 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.3107, allocations: 8 kB / 231.3 MB, free: 15.65 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.3124, allocations: 382.5 kB / 231.7 MB, free: 15.36 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002745/0.3151, allocations: 1.15 MB / 232.9 MB, free: 14.38 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.3166, allocations: 331.2 kB / 233.2 MB, free: 14.12 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.3166, allocations: 4 kB / 233.2 MB, free: 14.11 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.3167, allocations: 34.31 kB / 233.2 MB, free: 14.07 MB / 186.7 MB Notification: Performance of pre-optimization done (n=26): time 2.865e-06/0.3167, allocations: 7.938 kB / 233.2 MB, free: 14.07 MB / 186.7 MB Notification: Performance of matching and sorting (n=28): time 0.005469/0.3221, allocations: 1.424 MB / 234.6 MB, free: 12.77 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.529e-05/0.3223, allocations: 106.8 kB / 234.7 MB, free: 12.64 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/0.3228, allocations: 277.9 kB / 235 MB, free: 12.41 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.582e-05/0.3229, allocations: 33.02 kB / 235.1 MB, free: 12.38 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.323, allocations: 264.3 kB / 235.3 MB, free: 12.15 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.3232, allocations: 97.56 kB / 235.4 MB, free: 12.07 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.3232, allocations: 3.562 kB / 235.4 MB, free: 12.07 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3234, allocations: 333.3 kB / 235.7 MB, free: 11.74 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007082/0.3241, allocations: 158.3 kB / 235.9 MB, free: 11.62 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007686/0.3249, allocations: 220.4 kB / 236.1 MB, free: 11.43 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007272/0.3256, allocations: 174.9 kB / 236.3 MB, free: 11.31 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3256, allocations: 0 / 236.3 MB, free: 11.31 MB / 186.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001659/0.3273, allocations: 432.1 kB / 236.7 MB, free: 10.97 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.3273, allocations: 4 kB / 236.7 MB, free: 10.97 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.3274, allocations: 7.984 kB / 236.7 MB, free: 10.96 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.3274, allocations: 0 / 236.7 MB, free: 10.96 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.3285, allocations: 147.5 kB / 236.9 MB, free: 10.82 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.3286, allocations: 11.98 kB / 236.9 MB, free: 10.81 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005642/0.3291, allocations: 39.16 kB / 236.9 MB, free: 10.78 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.3292, allocations: 15.69 kB / 236.9 MB, free: 10.77 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: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0003409/0.3296, allocations: 159 kB / 237.1 MB, free: 10.62 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.3297, allocations: 35.62 kB / 237.1 MB, free: 10.59 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.3298, allocations: 41.2 kB / 237.1 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3298, allocations: 4 kB / 237.2 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.3298, allocations: 0 / 237.2 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.3299, allocations: 0 / 237.2 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.3325, allocations: 0.9105 MB / 238.1 MB, free: 9.754 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.3325, allocations: 4 kB / 238.1 MB, free: 9.75 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008392/0.3334, allocations: 99.42 kB / 238.2 MB, free: 9.656 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.886e-06/0.3334, allocations: 0 / 238.2 MB, free: 9.656 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.385e-05/0.3335, allocations: 11.81 kB / 238.2 MB, free: 9.648 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.776e-06/0.3335, allocations: 4 kB / 238.2 MB, free: 9.645 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.3335, allocations: 3.953 kB / 238.2 MB, free: 9.641 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.3361, allocations: 0.7399 MB / 238.9 MB, free: 8.977 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.3363, allocations: 111.6 kB / 239 MB, free: 8.852 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.078e-05/0.3364, allocations: 15.55 kB / 239 MB, free: 8.84 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/0.3371, allocations: 54.45 kB / 239.1 MB, free: 8.793 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3372, allocations: 27.27 kB / 239.1 MB, free: 8.77 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.3373, allocations: 8 kB / 239.1 MB, free: 8.762 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003723/0.3377, allocations: 216.6 kB / 239.3 MB, free: 8.594 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.485e-06/0.3377, allocations: 0 / 239.3 MB, free: 8.594 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005628/0.3382, allocations: 83.17 kB / 239.4 MB, free: 8.52 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.003079/0.3413, allocations: 1.573 MB / 241 MB, free: 7.027 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.3431, allocations: 374.3 kB / 241.4 MB, free: 6.734 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.3431, allocations: 0 / 241.4 MB, free: 6.734 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008388/0.344, allocations: 191 kB / 241.6 MB, free: 6.586 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008423/0.3448, allocations: 69.55 kB / 241.6 MB, free: 6.531 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008051/0.3529, allocations: 3.218 MB / 244.8 MB, free: 3.535 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.3534, allocations: 0.8108 MB / 245.7 MB, free: 2.699 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003216/0.3538, allocations: 120.7 kB / 245.8 MB, free: 2.66 MB / 186.7 MB Notification: Performance of SimCode: time 1.262e-06/0.3538, allocations: 0 / 245.8 MB, free: 2.66 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.524/2.878, allocations: 6.023 MB / 251.8 MB, free: 12.71 MB / 202.7 MB