Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.836/1.836, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003578, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09031, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3579/0.4483, allocations: 71.41 MB / 343.5 MB, free: 1.559 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003786/0.4487, allocations: 72.34 kB / 343.6 MB, free: 1.523 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06204/0.5108, allocations: 8.352 MB / 352 MB, free: 10.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5109, allocations: 0 / 352 MB, free: 10.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.78e-05/0.511, allocations: 15.98 kB / 352 MB, free: 10.46 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.003516/0.5145, allocations: 0.6963 MB / 352.7 MB, free: 9.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.553e-05/0.5146, allocations: 12.03 kB / 352.7 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002134/0.5148, allocations: 72.78 kB / 352.7 MB, free: 9.672 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.515, allocations: 43.81 kB / 352.8 MB, free: 9.629 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.5161, allocations: 374.5 kB / 353.2 MB, free: 9.258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.961e-05/0.5162, allocations: 48.61 kB / 353.2 MB, free: 9.215 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.396e-05/0.5163, allocations: 34.94 kB / 353.2 MB, free: 9.191 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.5178, allocations: 420.3 kB / 353.6 MB, free: 8.863 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.5179, allocations: 4 kB / 353.7 MB, free: 8.859 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.059e-05/0.5179, allocations: 14.38 kB / 353.7 MB, free: 8.855 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.518, allocations: 12 kB / 353.7 MB, free: 8.844 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.5198, allocations: 391.7 kB / 354.1 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00307/0.5229, allocations: 1.184 MB / 355.2 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002333/0.5252, allocations: 343.5 kB / 355.6 MB, free: 7.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.597e-05/0.5254, allocations: 4 kB / 355.6 MB, free: 7.266 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.151e-05/0.5254, allocations: 33.94 kB / 355.6 MB, free: 7.227 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 4.619e-06/0.5255, allocations: 0 / 355.6 MB, free: 7.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.009742/0.5352, allocations: 1.494 MB / 357.1 MB, free: 5.875 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.5354, allocations: 106.8 kB / 357.2 MB, free: 5.746 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000739/0.5362, allocations: 283.3 kB / 357.5 MB, free: 5.512 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.5363, allocations: 31.33 kB / 357.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.5365, allocations: 207.6 kB / 357.7 MB, free: 5.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.5368, allocations: 122.3 kB / 357.8 MB, free: 5.215 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.5368, allocations: 6.562 kB / 357.9 MB, free: 5.215 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.537, allocations: 343.6 kB / 358.2 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007543/0.5378, allocations: 169.9 kB / 358.4 MB, free: 4.754 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008035/0.5386, allocations: 231.2 kB / 358.6 MB, free: 4.555 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007783/0.5394, allocations: 171.4 kB / 358.7 MB, free: 4.438 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5394, allocations: 0 / 358.7 MB, free: 4.438 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001837/0.5413, allocations: 470 kB / 359.2 MB, free: 4.066 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.5413, allocations: 8 kB / 359.2 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.5413, allocations: 0 / 359.2 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.5414, allocations: 4 kB / 359.2 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.5425, allocations: 154.4 kB / 359.4 MB, free: 3.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.5426, allocations: 4 kB / 359.4 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005811/0.5432, allocations: 47.2 kB / 359.4 MB, free: 3.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.144e-05/0.5432, allocations: 10.88 kB / 359.4 MB, free: 3.855 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.000303/0.5436, allocations: 153.6 kB / 359.6 MB, free: 3.719 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.5437, allocations: 38.22 kB / 359.6 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.5438, allocations: 45.08 kB / 359.7 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.5438, allocations: 7.984 kB / 359.7 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.5438, allocations: 3.953 kB / 359.7 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.5439, allocations: 4 kB / 359.7 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004071/0.5479, allocations: 0.9373 MB / 360.6 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.548, allocations: 7.984 kB / 360.6 MB, free: 2.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.5495, allocations: 111.6 kB / 360.7 MB, free: 2.703 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.316e-05/0.5495, allocations: 0 / 360.7 MB, free: 2.703 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-05/0.5496, allocations: 7.688 kB / 360.7 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-05/0.5496, allocations: 4 kB / 360.7 MB, free: 2.695 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5496, allocations: 0 / 360.7 MB, free: 2.695 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004487/0.5541, allocations: 0.767 MB / 361.5 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004701/0.5547, allocations: 139.1 kB / 361.6 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.5548, allocations: 11.25 kB / 361.7 MB, free: 1.863 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.556, allocations: 59.14 kB / 361.7 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5562, allocations: 27.48 kB / 361.7 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.257e-05/0.5562, allocations: 11.98 kB / 361.8 MB, free: 1.777 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000505/0.5567, allocations: 222.4 kB / 362 MB, free: 1.605 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5568, allocations: 0 / 362 MB, free: 1.605 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001184/0.558, allocations: 81.38 kB / 362 MB, free: 1.535 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.004728/0.5627, allocations: 1.6 MB / 363.6 MB, free: 24 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002765/0.5655, allocations: 400.2 kB / 364 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.5656, allocations: 4 kB / 364 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.567, allocations: 198.9 kB / 364.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.5683, allocations: 65.27 kB / 364.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.5835, allocations: 3.193 MB / 367.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006461/0.5842, allocations: 0.8148 MB / 368.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005025/0.5847, allocations: 50.94 kB / 368.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.5851, allocations: 123.7 kB / 368.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5851, allocations: 0 / 368.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06235/0.6474, allocations: 7.314 MB / 375.8 MB, free: 4.383 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003663/0.6479, allocations: 159.8 kB / 375.9 MB, free: 4.148 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.857/3.504, allocations: 3.938 kB / 376 MB, free: 4.145 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat