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.111/1.111, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.413e-05/2.427e-05, allocations: 4 kB / 154.4 MB, free: 13.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2212, allocations: 25.15 MB / 179.5 MB, free: 0.8359 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07154/0.2928, allocations: 38.01 MB / 217.5 MB, free: 11.11 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.2931, allocations: 63.97 kB / 217.6 MB, free: 11.04 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03642/0.3295, allocations: 7.899 MB / 225.5 MB, free: 3.113 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3296, allocations: 0 / 225.5 MB, free: 3.113 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.684e-05/0.3296, allocations: 12 kB / 225.5 MB, free: 3.102 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001624/0.3313, allocations: 0.6309 MB / 226.1 MB, free: 2.426 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.3313, allocations: 8.031 kB / 226.1 MB, free: 2.418 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.3315, allocations: 66.55 kB / 226.2 MB, free: 2.344 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.3316, allocations: 51.42 kB / 226.3 MB, free: 2.293 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009001/0.3325, allocations: 350.9 kB / 226.6 MB, free: 1.914 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.213e-05/0.3326, allocations: 50.83 kB / 226.6 MB, free: 1.859 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.95e-05/0.3327, allocations: 35.95 kB / 226.7 MB, free: 1.824 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008571/0.3336, allocations: 344.7 kB / 227 MB, free: 1.469 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.3336, allocations: 0 / 227 MB, free: 1.469 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.152e-05/0.3337, allocations: 12 kB / 227 MB, free: 1.457 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3337, allocations: 8 kB / 227 MB, free: 1.449 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.3344, allocations: 235 kB / 227.3 MB, free: 1.219 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.3374, allocations: 1.148 MB / 228.4 MB, free: 4 kB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008914/0.3383, allocations: 240 kB / 228.6 MB, free: 15.76 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.3386, allocations: 100.8 kB / 228.7 MB, free: 15.66 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.05e-05/0.3386, allocations: 4.438 kB / 228.8 MB, free: 15.65 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.3387, allocations: 34.56 kB / 228.8 MB, free: 15.61 MB / 202.7 MB Notification: Performance of pre-optimization done (n=26): time 3.446e-06/0.3387, allocations: 0 / 228.8 MB, free: 15.61 MB / 202.7 MB Notification: Performance of matching and sorting (n=28): time 0.002264/0.341, allocations: 0.9387 MB / 229.7 MB, free: 14.57 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/0.3411, allocations: 106.8 kB / 229.8 MB, free: 14.45 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/0.3417, allocations: 278.7 kB / 230.1 MB, free: 14.17 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/0.3418, allocations: 33.64 kB / 230.1 MB, free: 14.13 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.3421, allocations: 258.6 kB / 230.4 MB, free: 13.88 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.3422, allocations: 102.5 kB / 230.5 MB, free: 13.78 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.3423, allocations: 7.938 kB / 230.5 MB, free: 13.77 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3425, allocations: 330.8 kB / 230.8 MB, free: 13.44 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.3429, allocations: 101.1 kB / 230.9 MB, free: 13.34 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005166/0.3435, allocations: 162 kB / 231.1 MB, free: 13.16 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/0.3439, allocations: 104 kB / 231.2 MB, free: 13.06 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3439, allocations: 0 / 231.2 MB, free: 13.06 MB / 202.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001142/0.3451, allocations: 325.2 kB / 231.5 MB, free: 12.74 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.3451, allocations: 9.375 kB / 231.5 MB, free: 12.73 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.3452, allocations: 4 kB / 231.5 MB, free: 12.73 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.3452, allocations: 4 kB / 231.5 MB, free: 12.72 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.3467, allocations: 147.8 kB / 231.7 MB, free: 12.58 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.3467, allocations: 4 kB / 231.7 MB, free: 12.57 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006874/0.3474, allocations: 39.97 kB / 231.7 MB, free: 12.54 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.64e-05/0.3475, allocations: 8 kB / 231.7 MB, free: 12.53 MB / 202.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 () * 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.0001977/0.3477, allocations: 136.8 kB / 231.8 MB, free: 12.39 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.3479, allocations: 31.62 kB / 231.9 MB, free: 12.36 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.348, allocations: 47.75 kB / 231.9 MB, free: 12.3 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.3481, allocations: 4 kB / 231.9 MB, free: 12.3 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.3481, allocations: 0 / 231.9 MB, free: 12.3 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3481, allocations: 0 / 231.9 MB, free: 12.3 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.3503, allocations: 0.7629 MB / 232.7 MB, free: 11.47 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.3503, allocations: 4 kB / 232.7 MB, free: 11.46 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.3514, allocations: 104 kB / 232.8 MB, free: 11.36 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.3514, allocations: 0 / 232.8 MB, free: 11.36 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.3515, allocations: 8 kB / 232.8 MB, free: 11.36 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.135e-06/0.3515, allocations: 4 kB / 232.8 MB, free: 11.35 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.3515, allocations: 3.953 kB / 232.8 MB, free: 11.35 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.353, allocations: 0.5262 MB / 233.3 MB, free: 10.77 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.3531, allocations: 108.7 kB / 233.4 MB, free: 10.64 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3533, allocations: 8.062 kB / 233.4 MB, free: 10.64 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008352/0.3541, allocations: 51.95 kB / 233.5 MB, free: 10.59 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.3542, allocations: 27.83 kB / 233.5 MB, free: 10.56 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.052e-05/0.3543, allocations: 15.98 kB / 233.5 MB, free: 10.54 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0004817/0.3548, allocations: 218.2 kB / 233.7 MB, free: 10.33 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3548, allocations: 0 / 233.7 MB, free: 10.33 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007742/0.3556, allocations: 75.95 kB / 233.8 MB, free: 10.25 MB / 202.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 () * 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.002017/0.3576, allocations: 1.341 MB / 235.2 MB, free: 8.855 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0009817/0.3587, allocations: 243.8 kB / 235.4 MB, free: 8.617 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.3587, allocations: 8.125 kB / 235.4 MB, free: 8.609 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004707/0.3592, allocations: 117.5 kB / 235.5 MB, free: 8.496 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3602, allocations: 69.16 kB / 235.6 MB, free: 8.43 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005086/0.3653, allocations: 1.007 MB / 236.6 MB, free: 7.371 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006392/0.366, allocations: 0.8113 MB / 237.4 MB, free: 6.531 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000437/0.3665, allocations: 123.4 kB / 237.5 MB, free: 6.41 MB / 202.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3665, allocations: 0 / 237.5 MB, free: 6.41 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.713/3.079, allocations: 5.971 MB / 243.5 MB, free: 452 kB / 202.7 MB