Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.554/1.554, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.335e-05/2.342e-05, allocations: 4 kB / 228.8 MB, free: 15.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2369, allocations: 38.78 MB / 267.6 MB, free: 9.441 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1785/0.4155, allocations: 71.31 MB / 338.9 MB, free: 2.02 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.4158, allocations: 71.95 kB / 339 MB, free: 1.949 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0356/0.4514, allocations: 8.329 MB / 347.3 MB, free: 9.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.865e-06/0.4514, allocations: 0 / 347.3 MB, free: 9.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.655e-05/0.4515, allocations: 12.19 kB / 347.3 MB, free: 9.578 MB / 298.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.001398/0.4529, allocations: 0.6543 MB / 348 MB, free: 8.875 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.4529, allocations: 12.03 kB / 348 MB, free: 8.863 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.4531, allocations: 51.42 kB / 348 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000821/0.4539, allocations: 363.2 kB / 348.4 MB, free: 8.418 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-05/0.454, allocations: 50.48 kB / 348.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.482e-05/0.4541, allocations: 39.91 kB / 348.5 MB, free: 8.324 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007885/0.4549, allocations: 348.6 kB / 348.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.455, allocations: 0 / 348.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.638e-05/0.455, allocations: 16 kB / 348.8 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.4551, allocations: 11.98 kB / 348.8 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006351/0.4557, allocations: 254.9 kB / 349.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002703/0.4584, allocations: 1.168 MB / 350.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007484/0.4592, allocations: 263.9 kB / 350.5 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002575/0.4595, allocations: 108.8 kB / 350.6 MB, free: 6.074 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.4595, allocations: 4 kB / 350.6 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.4596, allocations: 34.56 kB / 350.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 3.011e-06/0.4596, allocations: 0 / 350.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002166/0.4617, allocations: 0.9911 MB / 351.6 MB, free: 4.941 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.4618, allocations: 106.8 kB / 351.7 MB, free: 4.812 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004531/0.4623, allocations: 282.6 kB / 352 MB, free: 4.531 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.4624, allocations: 33.64 kB / 352.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.4626, allocations: 254.6 kB / 352.3 MB, free: 4.238 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.4627, allocations: 118.3 kB / 352.4 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/0.4628, allocations: 8 kB / 352.4 MB, free: 4.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.463, allocations: 326.8 kB / 352.7 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002755/0.4632, allocations: 104.7 kB / 352.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.4636, allocations: 175.2 kB / 353 MB, free: 3.488 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002937/0.4639, allocations: 112.5 kB / 353.1 MB, free: 3.379 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.642e-06/0.4639, allocations: 0 / 353.1 MB, free: 3.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007683/0.4647, allocations: 329.6 kB / 353.5 MB, free: 3.051 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.4647, allocations: 4 kB / 353.5 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.415e-06/0.4648, allocations: 4 kB / 353.5 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.4648, allocations: 4 kB / 353.5 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008391/0.4656, allocations: 151.9 kB / 353.6 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.129e-05/0.4657, allocations: 7.938 kB / 353.6 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004188/0.4661, allocations: 43.97 kB / 353.7 MB, free: 2.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.4662, allocations: 15.94 kB / 353.7 MB, free: 2.824 MB / 298.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 () * 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.0001502/0.4663, allocations: 120.9 kB / 353.8 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.4664, allocations: 39.53 kB / 353.8 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.4666, allocations: 40.08 kB / 353.9 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.646e-06/0.4666, allocations: 8 kB / 353.9 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.716e-06/0.4666, allocations: 0 / 353.9 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.4666, allocations: 7.938 kB / 353.9 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.4682, allocations: 0.7943 MB / 354.7 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/0.4683, allocations: 11.98 kB / 354.7 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006387/0.4689, allocations: 100 kB / 354.8 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.479e-06/0.469, allocations: 7.891 kB / 354.8 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/0.469, allocations: 8 kB / 354.8 MB, free: 1.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.105e-06/0.469, allocations: 4 kB / 354.8 MB, free: 1.613 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.38e-06/0.469, allocations: 4 kB / 354.8 MB, free: 1.609 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.4701, allocations: 0.552 MB / 355.4 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.4703, allocations: 140.7 kB / 355.5 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.686e-05/0.4704, allocations: 4 kB / 355.5 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005104/0.4709, allocations: 59.94 kB / 355.6 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.619e-05/0.471, allocations: 27.92 kB / 355.6 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.4711, allocations: 12 kB / 355.6 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003344/0.4714, allocations: 222.2 kB / 355.8 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.55e-07/0.4714, allocations: 0 / 355.8 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005186/0.472, allocations: 83.94 kB / 355.9 MB, free: 456 kB / 298.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 () * 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.0001763/0.4722, allocations: 111.2 kB / 356 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006303/0.4728, allocations: 251.8 kB / 356.3 MB, free: 84 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.494e-06/0.4728, allocations: 0 / 356.3 MB, free: 84 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1716/0.6445, allocations: 126.6 kB / 356.4 MB, free: 79.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007492/0.6453, allocations: 72.44 kB / 356.5 MB, free: 79.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.6477, allocations: 0.8525 MB / 357.3 MB, free: 78.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.6481, allocations: 0.816 MB / 358.1 MB, free: 78.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.6483, allocations: 29.56 kB / 358.2 MB, free: 78.26 MB / 298.7 MB Notification: Performance of SimCode: time 1.926e-06/0.6483, allocations: 0.625 kB / 358.2 MB, free: 78.26 MB / 298.7 MB Notification: Performance of Templates: time 0.008433/0.6567, allocations: 4.67 MB / 362.8 MB, free: 77.99 MB / 298.7 MB