Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 194.9 MB / 211.1 MB, free: 8.57 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003576, allocations: 8 kB / 264 MB, free: 3.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3253, allocations: 44.51 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.143/0.4684, allocations: 76.62 MB / 385.2 MB, free: 15.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.4687, allocations: 75.97 kB / 385.3 MB, free: 15.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0358/0.5046, allocations: 7.514 MB / 392.8 MB, free: 8.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5046, allocations: 0 / 392.8 MB, free: 8.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.171e-05/0.5047, allocations: 8 kB / 392.8 MB, free: 8.328 MB / 330.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.001981/0.5067, allocations: 0.7017 MB / 393.5 MB, free: 7.578 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.5067, allocations: 8.031 kB / 393.5 MB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.5069, allocations: 70.53 kB / 393.6 MB, free: 7.492 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.507, allocations: 51.39 kB / 393.6 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006995/0.5077, allocations: 318.2 kB / 393.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.497e-05/0.5078, allocations: 28.66 kB / 393.9 MB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.75e-05/0.5079, allocations: 39.91 kB / 394 MB, free: 7.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.5093, allocations: 413.8 kB / 394.4 MB, free: 6.602 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.5094, allocations: 0 / 394.4 MB, free: 6.602 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.649e-05/0.5095, allocations: 16 kB / 394.4 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.5095, allocations: 11.95 kB / 394.4 MB, free: 6.574 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.5113, allocations: 390.3 kB / 394.8 MB, free: 6.188 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003085/0.5144, allocations: 1.19 MB / 396 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.516, allocations: 339.1 kB / 396.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.5161, allocations: 7.953 kB / 396.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.5161, allocations: 38.56 kB / 396.4 MB, free: 4.523 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.106e-06/0.5161, allocations: 0 / 396.4 MB, free: 4.523 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.005793/0.5219, allocations: 1.475 MB / 397.8 MB, free: 2.953 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.522, allocations: 89.05 kB / 397.9 MB, free: 2.848 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005662/0.5226, allocations: 279.7 kB / 398.2 MB, free: 2.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.5227, allocations: 33.7 kB / 398.2 MB, free: 2.531 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.5229, allocations: 216 kB / 398.4 MB, free: 2.316 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.523, allocations: 106.4 kB / 398.5 MB, free: 2.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.5231, allocations: 12 kB / 398.6 MB, free: 2.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.5233, allocations: 346.8 kB / 398.9 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.5243, allocations: 176.6 kB / 399.1 MB, free: 1.676 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.5255, allocations: 242.2 kB / 399.3 MB, free: 1.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.5267, allocations: 196.2 kB / 399.5 MB, free: 1.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5267, allocations: 4 kB / 399.5 MB, free: 1.227 MB / 330.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002541/0.5292, allocations: 489 kB / 400 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000262/0.5295, allocations: 456.9 kB / 400.4 MB, free: 268 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.5296, allocations: 0 / 400.4 MB, free: 268 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.5296, allocations: 4 kB / 400.4 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/0.5319, allocations: 255.7 kB / 400.7 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.5333, allocations: 0.6952 MB / 401.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008506/0.5342, allocations: 43.98 kB / 401.4 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-05/0.5343, allocations: 20 kB / 401.4 MB, free: 15.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.5344, allocations: 4 kB / 401.4 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00216/0.5365, allocations: 403.9 kB / 401.8 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.5366, allocations: 0 / 401.8 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.5366, allocations: 7.984 kB / 401.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.5378, allocations: 127.8 kB / 402 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.5378, allocations: 4 kB / 402 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007248/0.5385, allocations: 43.97 kB / 402 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.786e-05/0.5386, allocations: 8 kB / 402 MB, free: 14.64 MB / 346.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.00044/0.5391, allocations: 241.5 kB / 402.3 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.5392, allocations: 35.56 kB / 402.3 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001547/0.5394, allocations: 39.95 kB / 402.3 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.5394, allocations: 7.953 kB / 402.3 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5394, allocations: 0 / 402.3 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.5395, allocations: 4 kB / 402.3 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003792/0.5433, allocations: 0.9308 MB / 403.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.5433, allocations: 3.984 kB / 403.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.5445, allocations: 100 kB / 403.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.006e-05/0.5446, allocations: 7.984 kB / 403.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.5446, allocations: 8 kB / 403.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.5447, allocations: 0 / 403.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/0.5447, allocations: 7.938 kB / 403.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003854/0.5486, allocations: 0.7666 MB / 404.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.549, allocations: 128.8 kB / 404.3 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.5491, allocations: 8 kB / 404.3 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007874/0.5499, allocations: 51.95 kB / 404.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.5501, allocations: 27.86 kB / 404.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-05/0.5502, allocations: 15.94 kB / 404.4 MB, free: 12.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005415/0.5507, allocations: 223.1 kB / 404.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5507, allocations: 0 / 404.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00127/0.552, allocations: 132 kB / 404.7 MB, free: 11.77 MB / 346.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.004257/0.5563, allocations: 1.583 MB / 406.3 MB, free: 10.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004805/0.5612, allocations: 0.7506 MB / 407.1 MB, free: 9.379 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.5612, allocations: 0 / 407.1 MB, free: 9.379 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.5625, allocations: 196.1 kB / 407.3 MB, free: 9.188 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.5636, allocations: 70.77 kB / 407.3 MB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.5742, allocations: 3.264 MB / 410.6 MB, free: 5.777 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006316/0.5749, allocations: 0.8155 MB / 411.4 MB, free: 4.938 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005957/0.5755, allocations: 54.92 kB / 411.5 MB, free: 4.887 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.576, allocations: 123.4 kB / 411.6 MB, free: 4.766 MB / 346.7 MB Notification: Performance of SimCode: time 1.963e-06/0.576, allocations: 4 kB / 411.6 MB, free: 4.762 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3115/0.8875, allocations: 7.262 MB / 418.9 MB, free: 95.26 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002691/0.8879, allocations: 192.6 kB / 419 MB, free: 95.03 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.8/3.688, allocations: 0 / 419 MB, free: 95.03 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat