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 1.942/1.942, allocations: 194.9 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003456, allocations: 11.94 kB / 264.5 MB, free: 12.96 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09184, allocations: 44.52 MB / 309.1 MB, free: 380 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00439/0.09629, allocations: 2.409 MB / 311.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002224/0.09857, allocations: 0.8817 MB / 312.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/0.09883, allocations: 11.94 kB / 312.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002646/0.09911, allocations: 47.62 kB / 312.4 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000467/0.09959, allocations: 131.6 kB / 312.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006111/0.1002, allocations: 147.8 kB / 312.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005947/0.1008, allocations: 319.9 kB / 313 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.1011, allocations: 119.8 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.1014, allocations: 147.3 kB / 313.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002702/0.1017, allocations: 151.2 kB / 313.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.189e-05/0.1018, allocations: 16 kB / 313.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.181e-05/0.1018, allocations: 12 kB / 313.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.102, allocations: 71.69 kB / 313.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.1021, allocations: 85.52 kB / 313.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004605/0.1026, allocations: 319.4 kB / 313.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1026, allocations: 7.938 kB / 313.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1026, allocations: 0 / 313.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.453e-06/0.1026, allocations: 0 / 313.9 MB, free: 11.49 MB / 266.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.001712/0.1043, allocations: 0.6779 MB / 314.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1044, allocations: 12.03 kB / 314.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.1045, allocations: 43.44 kB / 314.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005632/0.1051, allocations: 326.2 kB / 314.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.1051, allocations: 20.66 kB / 315 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.74e-05/0.1052, allocations: 35.98 kB / 315 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.1066, allocations: 409.8 kB / 315.4 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/0.1066, allocations: 11.89 kB / 315.4 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.081e-05/0.1067, allocations: 12 kB / 315.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.1067, allocations: 12 kB / 315.4 MB, free: 9.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.1084, allocations: 398.3 kB / 315.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002872/0.1113, allocations: 1.182 MB / 317 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1127, allocations: 338.8 kB / 317.3 MB, free: 7.848 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.95e-05/0.1128, allocations: 4 kB / 317.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.1128, allocations: 38.5 kB / 317.4 MB, free: 7.797 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.645e-06/0.1129, allocations: 3.938 kB / 317.4 MB, free: 7.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=31): time 0.005391/0.1183, allocations: 1.471 MB / 318.9 MB, free: 6.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.1183, allocations: 85.11 kB / 318.9 MB, free: 6.129 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004829/0.1188, allocations: 316.4 kB / 319.2 MB, free: 5.816 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.1189, allocations: 33.7 kB / 319.3 MB, free: 5.777 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.1191, allocations: 212.1 kB / 319.5 MB, free: 5.566 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.1192, allocations: 118.3 kB / 319.6 MB, free: 5.449 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.1193, allocations: 12 kB / 319.6 MB, free: 5.438 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1195, allocations: 346.8 kB / 320 MB, free: 5.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008048/0.1203, allocations: 176.6 kB / 320.1 MB, free: 4.914 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008662/0.1212, allocations: 242.2 kB / 320.4 MB, free: 4.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008196/0.122, allocations: 188.2 kB / 320.5 MB, free: 4.477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.122, allocations: 4 kB / 320.6 MB, free: 4.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001854/0.1239, allocations: 485 kB / 321 MB, free: 3.992 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.124, allocations: 128.5 kB / 321.1 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.124, allocations: 3.938 kB / 321.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.124, allocations: 4 kB / 321.2 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/0.1258, allocations: 251.7 kB / 321.4 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/0.1285, allocations: 1.552 MB / 323 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005502/0.129, allocations: 48.16 kB / 323 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.1291, allocations: 16 kB / 323 MB, free: 1.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.1291, allocations: 5.875 kB / 323 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001587/0.1307, allocations: 416 kB / 323.4 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1307, allocations: 4 kB / 323.4 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.953e-06/0.1308, allocations: 4 kB / 323.4 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.1316, allocations: 115.9 kB / 323.6 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1316, allocations: 4.031 kB / 323.6 MB, free: 1.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004706/0.1321, allocations: 47.91 kB / 323.6 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.1322, allocations: 12 kB / 323.6 MB, free: 1.25 MB / 266.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.0002844/0.1325, allocations: 233.3 kB / 323.8 MB, free: 1.012 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.202e-05/0.1326, allocations: 39.53 kB / 323.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.1327, allocations: 43.95 kB / 323.9 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.1327, allocations: 3.984 kB / 323.9 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1327, allocations: 3.938 kB / 323.9 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.1329, allocations: 128.7 kB / 324.1 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.133, allocations: 4 kB / 324.1 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005184/0.1335, allocations: 47.95 kB / 324.1 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.67e-05/0.1336, allocations: 23.97 kB / 324.1 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002287/0.1359, allocations: 0.5279 MB / 324.7 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002567/0.1385, allocations: 0.7675 MB / 325.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007779/0.1393, allocations: 200.4 kB / 325.6 MB, free: 15.19 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003293/0.1397, allocations: 215 kB / 325.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of Backend: time 6.11e-07/0.1397, allocations: 0 / 325.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002979/0.1427, allocations: 0.6778 MB / 326.5 MB, free: 14.29 MB / 282.7 MB Notification: Performance of SimCode: time 0.002602/0.1453, allocations: 1.537 MB / 328 MB, free: 12.71 MB / 282.7 MB Notification: Performance of Templates: time 0.01982/0.1651, allocations: 5.223 MB / 333.3 MB, free: 7.5 MB / 282.7 MB