Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.689/1.689, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006219/0.0006218, allocations: 8 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09839, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3436/0.442, allocations: 71.4 MB / 343.5 MB, free: 2.062 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.4423, allocations: 70.59 kB / 343.6 MB, free: 2.027 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03837/0.4807, allocations: 8.356 MB / 351.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.181e-06/0.4808, allocations: 0 / 351.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.829e-05/0.4808, allocations: 11.94 kB / 351.9 MB, free: 10.97 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001927/0.4828, allocations: 0.7049 MB / 352.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.4828, allocations: 8.031 kB / 352.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.483, allocations: 71.34 kB / 352.7 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.4831, allocations: 43.88 kB / 352.8 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009626/0.4841, allocations: 368 kB / 353.1 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.178e-05/0.4842, allocations: 51.98 kB / 353.2 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.095e-05/0.4843, allocations: 34.56 kB / 353.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.4857, allocations: 416.4 kB / 353.6 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.4857, allocations: 0 / 353.6 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.445e-05/0.4858, allocations: 14.75 kB / 353.6 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.4858, allocations: 8 kB / 353.6 MB, free: 9.363 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.4875, allocations: 400.2 kB / 354 MB, free: 9.059 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002993/0.4905, allocations: 1.184 MB / 355.2 MB, free: 8.051 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.492, allocations: 349.3 kB / 355.6 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.492, allocations: 0 / 355.6 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/0.4921, allocations: 42.17 kB / 355.6 MB, free: 7.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.254e-06/0.4921, allocations: 0 / 355.6 MB, free: 7.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.005631/0.4977, allocations: 1.489 MB / 357.1 MB, free: 6.383 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.564e-05/0.4978, allocations: 106.8 kB / 357.2 MB, free: 6.254 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005036/0.4984, allocations: 286.1 kB / 357.5 MB, free: 6.016 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.692e-05/0.4984, allocations: 29.08 kB / 357.5 MB, free: 5.984 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.4986, allocations: 259.5 kB / 357.8 MB, free: 5.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.4988, allocations: 115.4 kB / 357.9 MB, free: 5.672 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/0.4988, allocations: 3.75 kB / 357.9 MB, free: 5.672 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.499, allocations: 329.9 kB / 358.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007307/0.4997, allocations: 163.2 kB / 358.4 MB, free: 5.223 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008053/0.5005, allocations: 230.7 kB / 358.6 MB, free: 5.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007492/0.5013, allocations: 171.4 kB / 358.7 MB, free: 4.906 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5013, allocations: 3.938 kB / 358.7 MB, free: 4.902 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001741/0.5031, allocations: 452.3 kB / 359.2 MB, free: 4.551 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.5031, allocations: 4 kB / 359.2 MB, free: 4.547 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5031, allocations: 4 kB / 359.2 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.5032, allocations: 0 / 359.2 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.5043, allocations: 158.9 kB / 359.4 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.5044, allocations: 7.938 kB / 359.4 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.505, allocations: 50.7 kB / 359.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.065e-05/0.505, allocations: 11.94 kB / 359.4 MB, free: 4.332 MB / 282.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 (46): * Single equations (assignments): 46 * 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.0003228/0.5054, allocations: 155.5 kB / 359.6 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.5055, allocations: 31.62 kB / 359.6 MB, free: 4.164 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.5056, allocations: 40.95 kB / 359.6 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.5056, allocations: 7.984 kB / 359.7 MB, free: 4.133 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.5056, allocations: 7.953 kB / 359.7 MB, free: 4.125 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.5057, allocations: 4 kB / 359.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.5084, allocations: 0.9353 MB / 360.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.5084, allocations: 0 / 360.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008839/0.5093, allocations: 107.9 kB / 360.7 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.197e-05/0.5094, allocations: 4 kB / 360.7 MB, free: 3.191 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/0.5094, allocations: 10.56 kB / 360.7 MB, free: 3.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.5094, allocations: 0 / 360.7 MB, free: 3.188 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.5094, allocations: 4 kB / 360.7 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.5122, allocations: 0.763 MB / 361.5 MB, free: 2.504 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/0.5126, allocations: 143.2 kB / 361.6 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.267e-05/0.5127, allocations: 11.67 kB / 361.6 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006736/0.5133, allocations: 55.56 kB / 361.7 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.5135, allocations: 27.61 kB / 361.7 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.5135, allocations: 11.69 kB / 361.7 MB, free: 2.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003805/0.5139, allocations: 226.9 kB / 362 MB, free: 2.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5139, allocations: 4 kB / 362 MB, free: 2.086 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005488/0.5145, allocations: 74.81 kB / 362 MB, free: 2.023 MB / 282.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 (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 Backend phase and start with SimCode phase: time 0.003594/0.5181, allocations: 1.594 MB / 363.6 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.5203, allocations: 401.3 kB / 364 MB, free: 208 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.5204, allocations: 0 / 364 MB, free: 208 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.5215, allocations: 198.8 kB / 364.2 MB, free: 48 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.5225, allocations: 73.64 kB / 364.3 MB, free: 15.99 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0095/0.5321, allocations: 3.232 MB / 367.5 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/0.5328, allocations: 0.8148 MB / 368.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004392/0.5332, allocations: 127.5 kB / 368.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5332, allocations: 0 / 368.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.537/3.07, allocations: 6.249 MB / 374.7 MB, free: 5.949 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat