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: 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_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 2.296/2.296, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005654/0.0005656, allocations: 11.94 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1132, allocations: 44.5 MB / 309 MB, free: 388 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5455, allocations: 76.62 MB / 385.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5458, allocations: 80.33 kB / 385.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03186/0.5777, allocations: 7.518 MB / 393.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5778, allocations: 0 / 393.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.704e-05/0.5778, allocations: 7.812 kB / 393.3 MB, free: 14.61 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.001599/0.5794, allocations: 0.6957 MB / 393.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.5795, allocations: 7.844 kB / 394 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.5796, allocations: 50.64 kB / 394 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005456/0.5802, allocations: 320.8 kB / 394.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.5802, allocations: 25.78 kB / 394.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.683e-05/0.5803, allocations: 36.34 kB / 394.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.5816, allocations: 408.9 kB / 394.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/0.5816, allocations: 11.84 kB / 394.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/0.5817, allocations: 18.31 kB / 394.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.5817, allocations: 7.75 kB / 394.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.5833, allocations: 392.4 kB / 395.2 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002517/0.5858, allocations: 1.189 MB / 396.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.5871, allocations: 343.2 kB / 396.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.187e-05/0.5872, allocations: 0 / 396.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.5873, allocations: 44.94 kB / 396.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.903e-06/0.5873, allocations: 0 / 396.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.005135/0.5924, allocations: 1.475 MB / 398.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.5925, allocations: 80.89 kB / 398.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004676/0.593, allocations: 313.7 kB / 398.6 MB, free: 12.38 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.593, allocations: 32.58 kB / 398.7 MB, free: 12.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.5932, allocations: 218.5 kB / 398.9 MB, free: 12.22 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.183e-05/0.5933, allocations: 110.2 kB / 399 MB, free: 12.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.5933, allocations: 10.44 kB / 399 MB, free: 12.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.928e-05/0.5934, allocations: 349.7 kB / 399.3 MB, free: 11.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007405/0.5942, allocations: 175.9 kB / 399.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000784/0.595, allocations: 238.1 kB / 399.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007575/0.5957, allocations: 200.8 kB / 399.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5958, allocations: 4 kB / 399.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001745/0.5975, allocations: 486.2 kB / 400.4 MB, free: 11.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.14e-05/0.5976, allocations: 125.5 kB / 400.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5976, allocations: 11.84 kB / 400.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.5977, allocations: 0 / 400.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.5993, allocations: 250.4 kB / 400.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.6016, allocations: 1.548 MB / 402.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006608/0.6023, allocations: 51.77 kB / 402.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.629e-05/0.6024, allocations: 12.22 kB / 402.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.6024, allocations: 3.875 kB / 402.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001461/0.6039, allocations: 410.3 kB / 402.8 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.768e-06/0.6039, allocations: 0 / 402.8 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.077e-06/0.6039, allocations: 11.8 kB / 402.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008429/0.6048, allocations: 118.2 kB / 402.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.6048, allocations: 3.906 kB / 402.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005011/0.6053, allocations: 42.02 kB / 403 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.6054, allocations: 19.17 kB / 403 MB, free: 10.15 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.000304/0.6057, allocations: 237.1 kB / 403.2 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.609e-05/0.6058, allocations: 31.25 kB / 403.3 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.6059, allocations: 48.3 kB / 403.3 MB, free: 9.918 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.6059, allocations: 8.047 kB / 403.3 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.6059, allocations: 3.938 kB / 403.3 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.6059, allocations: 3.938 kB / 403.3 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.6084, allocations: 0.9371 MB / 404.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.6084, allocations: 3.781 kB / 404.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008194/0.6092, allocations: 97 kB / 404.4 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.999e-06/0.6093, allocations: 6.781 kB / 404.4 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.6093, allocations: 7.375 kB / 404.4 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.6093, allocations: 0 / 404.4 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6093, allocations: 3.875 kB / 404.4 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.6117, allocations: 0.724 MB / 405.1 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/0.612, allocations: 132.8 kB / 405.2 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.171e-05/0.6121, allocations: 7.25 kB / 405.2 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.6126, allocations: 51.83 kB / 405.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.6127, allocations: 22.27 kB / 405.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.669e-05/0.6128, allocations: 7.625 kB / 405.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003414/0.6131, allocations: 226.6 kB / 405.5 MB, free: 9.121 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6131, allocations: 0 / 405.5 MB, free: 9.121 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007267/0.6139, allocations: 133.5 kB / 405.7 MB, free: 9.117 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.0001593/0.614, allocations: 109.9 kB / 405.8 MB, free: 9.027 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003282/0.6173, allocations: 0.7619 MB / 406.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.6174, allocations: 0 / 406.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008005/0.6182, allocations: 196.3 kB / 406.7 MB, free: 8.973 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007857/0.619, allocations: 80.11 kB / 406.8 MB, free: 8.965 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.6219, allocations: 1.225 MB / 408 MB, free: 8.227 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.6222, allocations: 0.8202 MB / 408.8 MB, free: 7.461 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004535/0.6227, allocations: 49.97 kB / 408.9 MB, free: 7.438 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.6228, allocations: 26.53 kB / 408.9 MB, free: 7.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6229, allocations: 0 / 408.9 MB, free: 7.43 MB / 314.7 MB Notification: Performance of Templates: time 0.01207/0.6349, allocations: 3.844 MB / 412.8 MB, free: 5.574 MB / 314.7 MB