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: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 2.088/2.088, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 12 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1048, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5061/0.611, allocations: 76.61 MB / 385.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.6113, allocations: 75.41 kB / 385.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03114/0.6425, allocations: 7.514 MB / 393.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6425, allocations: 0 / 393.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.805e-05/0.6426, allocations: 7.75 kB / 393.2 MB, free: 14.04 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.001595/0.6442, allocations: 0.6927 MB / 393.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.6443, allocations: 7.375 kB / 393.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.6444, allocations: 50.45 kB / 393.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005642/0.645, allocations: 322.8 kB / 394.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.645, allocations: 26.81 kB / 394.3 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.6451, allocations: 36.83 kB / 394.3 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.6463, allocations: 408.9 kB / 394.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.6464, allocations: 7.047 kB / 394.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.665e-05/0.6464, allocations: 18.84 kB / 394.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.6464, allocations: 11.69 kB / 394.7 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.648, allocations: 401.2 kB / 395.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.6504, allocations: 1.191 MB / 396.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.6518, allocations: 345.6 kB / 396.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.943e-05/0.6518, allocations: 3.875 kB / 396.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.6518, allocations: 34.52 kB / 396.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.364e-06/0.6519, allocations: 0 / 396.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.00499/0.6569, allocations: 1.474 MB / 398.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.6569, allocations: 80.92 kB / 398.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004212/0.6574, allocations: 321.1 kB / 398.6 MB, free: 11.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.6574, allocations: 32.92 kB / 398.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.6575, allocations: 260.7 kB / 398.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.067e-05/0.6576, allocations: 115.9 kB / 399 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.6577, allocations: 6.812 kB / 399 MB, free: 11.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.593e-05/0.6577, allocations: 329.4 kB / 399.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007793/0.6585, allocations: 177.6 kB / 399.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008122/0.6594, allocations: 243.8 kB / 399.7 MB, free: 11.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007693/0.6601, allocations: 191.9 kB / 399.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6602, allocations: 0 / 399.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001699/0.6619, allocations: 479.1 kB / 400.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.104e-05/0.662, allocations: 127 kB / 400.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.662, allocations: 0 / 400.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.662, allocations: 7.906 kB / 400.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.6636, allocations: 248.9 kB / 400.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/0.6659, allocations: 1.548 MB / 402.3 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005802/0.6665, allocations: 46.64 kB / 402.3 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.6665, allocations: 15.06 kB / 402.3 MB, free: 9.574 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.893e-06/0.6665, allocations: 3.875 kB / 402.3 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001463/0.668, allocations: 407.2 kB / 402.7 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.668, allocations: 0 / 402.7 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.363e-06/0.668, allocations: 7.828 kB / 402.7 MB, free: 9.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008528/0.6689, allocations: 122.2 kB / 402.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.6689, allocations: 7.719 kB / 402.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004218/0.6693, allocations: 37.17 kB / 402.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.6694, allocations: 15.25 kB / 402.9 MB, free: 9.539 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.0002827/0.6697, allocations: 237.5 kB / 403.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.798e-05/0.6698, allocations: 31 kB / 403.2 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.912e-05/0.6699, allocations: 46.45 kB / 403.2 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.6699, allocations: 7.891 kB / 403.2 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.6699, allocations: 0 / 403.2 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.6699, allocations: 7.5 kB / 403.2 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.6723, allocations: 0.9366 MB / 404.2 MB, free: 8.934 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.6723, allocations: 4.5 kB / 404.2 MB, free: 8.934 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008131/0.6731, allocations: 92.12 kB / 404.3 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.6732, allocations: 13.92 kB / 404.3 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.287e-05/0.6732, allocations: 7.469 kB / 404.3 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.6732, allocations: 2.625 kB / 404.3 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.6732, allocations: 1.25 kB / 404.3 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.6756, allocations: 0.726 MB / 405 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001588/0.6758, allocations: 135 kB / 405.2 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.569e-05/0.6758, allocations: 5.375 kB / 405.2 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005147/0.6764, allocations: 48.38 kB / 405.2 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.734e-05/0.6765, allocations: 26.38 kB / 405.2 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.6765, allocations: 3.938 kB / 405.2 MB, free: 8.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003011/0.6768, allocations: 228 kB / 405.5 MB, free: 8.504 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6768, allocations: 0 / 405.5 MB, free: 8.504 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006865/0.6775, allocations: 132 kB / 405.6 MB, free: 8.5 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.0001543/0.6777, allocations: 117.4 kB / 405.7 MB, free: 8.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003289/0.681, allocations: 0.7557 MB / 406.5 MB, free: 8.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.681, allocations: 4.188 kB / 406.5 MB, free: 8.367 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007884/0.6818, allocations: 194.7 kB / 406.6 MB, free: 8.355 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.6825, allocations: 72 kB / 406.7 MB, free: 8.352 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002767/0.6853, allocations: 1.253 MB / 408 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.6856, allocations: 0.8219 MB / 408.8 MB, free: 6.918 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.6858, allocations: 30.69 kB / 408.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6858, allocations: 0 / 408.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of Templates: time 0.01047/0.6963, allocations: 5.221 MB / 414 MB, free: 4.496 MB / 314.7 MB