Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003483, allocations: 11.94 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09539, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4217/0.5171, allocations: 76.61 MB / 385.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.5175, allocations: 78.48 kB / 385.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03126/0.5487, allocations: 7.516 MB / 392.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5488, allocations: 0 / 392.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.652e-05/0.5488, allocations: 11.06 kB / 392.7 MB, free: 13.78 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001661/0.5505, allocations: 0.6873 MB / 393.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.5506, allocations: 15.62 kB / 393.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.5507, allocations: 74.03 kB / 393.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.5508, allocations: 46.92 kB / 393.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005706/0.5514, allocations: 323.2 kB / 393.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.5515, allocations: 27.28 kB / 393.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.013e-05/0.5516, allocations: 39.69 kB / 393.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.5528, allocations: 409.4 kB / 394.3 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.5529, allocations: 3.75 kB / 394.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-05/0.5529, allocations: 13.5 kB / 394.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.553, allocations: 15.56 kB / 394.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.5545, allocations: 400.7 kB / 394.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.5572, allocations: 1.176 MB / 395.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.5585, allocations: 346.8 kB / 396.3 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.363e-05/0.5586, allocations: 7.828 kB / 396.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.5586, allocations: 33.56 kB / 396.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.895e-06/0.5587, allocations: 0 / 396.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.005094/0.5638, allocations: 1.48 MB / 397.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.5639, allocations: 80.95 kB / 397.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.5643, allocations: 283.8 kB / 398.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.5643, allocations: 29.2 kB / 398.2 MB, free: 11.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.5645, allocations: 262.3 kB / 398.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.5646, allocations: 111.9 kB / 398.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.5646, allocations: 11.56 kB / 398.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.875e-05/0.5647, allocations: 328.7 kB / 398.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007547/0.5655, allocations: 181.7 kB / 399.1 MB, free: 10.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007752/0.5663, allocations: 244.1 kB / 399.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007568/0.5671, allocations: 191.4 kB / 399.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.5671, allocations: 0 / 399.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001721/0.5688, allocations: 484.6 kB / 400 MB, free: 10.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.569, allocations: 452.4 kB / 400.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.569, allocations: 3.984 kB / 400.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.569, allocations: 3.844 kB / 400.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.5707, allocations: 250.1 kB / 400.7 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008931/0.5716, allocations: 0.6885 MB / 401.3 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006209/0.5722, allocations: 53.5 kB / 401.4 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.5723, allocations: 11.44 kB / 401.4 MB, free: 9.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.5723, allocations: 3.844 kB / 401.4 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001512/0.5738, allocations: 402.8 kB / 401.8 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.5739, allocations: 1.5 kB / 401.8 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.5739, allocations: 3 kB / 401.8 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008326/0.5747, allocations: 133.5 kB / 401.9 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.5747, allocations: 3.844 kB / 401.9 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004177/0.5752, allocations: 34.73 kB / 402 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.5752, allocations: 19.27 kB / 402 MB, free: 9.645 MB / 314.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): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002964/0.5755, allocations: 241.2 kB / 402.2 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.5756, allocations: 34.91 kB / 402.3 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.5757, allocations: 40.62 kB / 402.3 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.5758, allocations: 7.797 kB / 402.3 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.5758, allocations: 0 / 402.3 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.5758, allocations: 7.875 kB / 402.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002351/0.5782, allocations: 0.9387 MB / 403.3 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.5782, allocations: 0 / 403.3 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007664/0.579, allocations: 92.62 kB / 403.4 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/0.579, allocations: 2.656 kB / 403.4 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.579, allocations: 14.72 kB / 403.4 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.5791, allocations: 1.25 kB / 403.4 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5791, allocations: 6.469 kB / 403.4 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.5815, allocations: 0.7643 MB / 404.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.5817, allocations: 133.6 kB / 404.3 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.568e-05/0.5818, allocations: 7.25 kB / 404.3 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.5823, allocations: 46.7 kB / 404.3 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5825, allocations: 33.45 kB / 404.4 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.5825, allocations: 7 kB / 404.4 MB, free: 8.633 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003253/0.5828, allocations: 226.5 kB / 404.6 MB, free: 8.551 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5828, allocations: 3.938 kB / 404.6 MB, free: 8.547 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007045/0.5836, allocations: 130 kB / 404.7 MB, free: 8.543 MB / 314.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.002637/0.5862, allocations: 1.585 MB / 406.3 MB, free: 7.473 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003154/0.5894, allocations: 0.7484 MB / 407 MB, free: 7.426 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.5894, allocations: 0 / 407 MB, free: 7.426 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008002/0.5903, allocations: 199.8 kB / 407.2 MB, free: 7.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007944/0.5911, allocations: 70.45 kB / 407.3 MB, free: 7.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006808/0.5979, allocations: 3.301 MB / 410.6 MB, free: 5.715 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.5983, allocations: 0.8105 MB / 411.4 MB, free: 4.965 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/0.5986, allocations: 126.7 kB / 411.5 MB, free: 4.945 MB / 314.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5986, allocations: 0 / 411.5 MB, free: 4.945 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.704/3.302, allocations: 6.826 MB / 418.4 MB, free: 1.543 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat