Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.911/1.911, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003593, allocations: 12 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08257, allocations: 44.5 MB / 308.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004121/0.08674, allocations: 2.413 MB / 310.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.08912, allocations: 0.8933 MB / 311.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003246/0.08949, allocations: 11.94 kB / 311.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.08977, allocations: 43.64 kB / 311.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004655/0.09025, allocations: 127.6 kB / 311.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006167/0.09088, allocations: 155.7 kB / 312 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005948/0.0915, allocations: 319.9 kB / 312.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.09182, allocations: 119.8 kB / 312.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.09208, allocations: 143.4 kB / 312.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.09236, allocations: 155.2 kB / 312.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.241e-05/0.09243, allocations: 16 kB / 312.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.0925, allocations: 12 kB / 312.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.09262, allocations: 67.73 kB / 312.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.09274, allocations: 93.45 kB / 312.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004475/0.0932, allocations: 311.4 kB / 313.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.348e-06/0.09322, allocations: 0 / 313.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.097e-06/0.09324, allocations: 3.938 kB / 313.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.623e-06/0.09326, allocations: 4 kB / 313.2 MB, free: 12.16 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.001429/0.0947, allocations: 0.6663 MB / 313.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.09475, allocations: 8.031 kB / 313.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.09488, allocations: 43.44 kB / 313.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005768/0.09548, allocations: 338.1 kB / 314.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/0.09553, allocations: 24.66 kB / 314.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.09565, allocations: 32 kB / 314.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.09677, allocations: 409.8 kB / 314.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.09682, allocations: 7.906 kB / 314.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.09688, allocations: 12 kB / 314.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.09691, allocations: 8 kB / 314.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.09819, allocations: 398.3 kB / 315.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002771/0.101, allocations: 1.182 MB / 316.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.1022, allocations: 342.7 kB / 316.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.1022, allocations: 4 kB / 316.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.1023, allocations: 38.56 kB / 316.7 MB, free: 8.473 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 4.12e-06/0.1023, allocations: 0 / 316.7 MB, free: 8.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=31): time 0.004291/0.1066, allocations: 1.479 MB / 318.1 MB, free: 6.902 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.1067, allocations: 81.11 kB / 318.2 MB, free: 6.805 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.1072, allocations: 316.5 kB / 318.5 MB, free: 6.492 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.019e-05/0.1073, allocations: 33.7 kB / 318.6 MB, free: 6.453 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.1075, allocations: 266.5 kB / 318.8 MB, free: 6.191 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.1077, allocations: 118.2 kB / 318.9 MB, free: 6.074 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.1077, allocations: 12 kB / 319 MB, free: 6.062 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1079, allocations: 322.8 kB / 319.3 MB, free: 5.738 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006082/0.1085, allocations: 180.6 kB / 319.4 MB, free: 5.559 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006512/0.1092, allocations: 238.3 kB / 319.7 MB, free: 5.309 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006119/0.1098, allocations: 196.1 kB / 319.9 MB, free: 5.117 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.784e-06/0.1098, allocations: 0 / 319.9 MB, free: 5.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001409/0.1113, allocations: 465.3 kB / 320.3 MB, free: 4.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.1114, allocations: 128.4 kB / 320.5 MB, free: 4.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.1114, allocations: 0 / 320.5 MB, free: 4.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.1115, allocations: 11.92 kB / 320.5 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.1126, allocations: 255.7 kB / 320.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.115, allocations: 1.556 MB / 322.3 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.1155, allocations: 52.05 kB / 322.3 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.1155, allocations: 12 kB / 322.3 MB, free: 2.496 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.1156, allocations: 4.938 kB / 322.3 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001243/0.1168, allocations: 404 kB / 322.7 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.856e-06/0.1168, allocations: 4 kB / 322.7 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.786e-06/0.1169, allocations: 0 / 322.7 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005881/0.1175, allocations: 123.8 kB / 322.9 MB, free: 1.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.256e-06/0.1175, allocations: 3.984 kB / 322.9 MB, free: 1.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.1178, allocations: 47.95 kB / 322.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-05/0.1179, allocations: 12 kB / 322.9 MB, free: 1.91 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.0003296/0.1182, allocations: 229.3 kB / 323.1 MB, free: 1.676 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.1183, allocations: 31.62 kB / 323.2 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1184, allocations: 51.95 kB / 323.2 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.701e-06/0.1185, allocations: 0 / 323.2 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.497e-06/0.1185, allocations: 4 kB / 323.2 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.63e-06/0.1185, allocations: 7.891 kB / 323.2 MB, free: 1.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.1208, allocations: 0.9263 MB / 324.2 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.1208, allocations: 0 / 324.2 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005607/0.1214, allocations: 100 kB / 324.3 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-05/0.1214, allocations: 7.953 kB / 324.3 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.1215, allocations: 4 kB / 324.3 MB, free: 492 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-05/0.1215, allocations: 4 kB / 324.3 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.031e-06/0.1215, allocations: 3.938 kB / 324.3 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.1235, allocations: 0.7092 MB / 325 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002607/0.1238, allocations: 136.8 kB / 325.1 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.497e-05/0.1238, allocations: 7.953 kB / 325.1 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.1242, allocations: 51.95 kB / 325.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.1244, allocations: 23.91 kB / 325.2 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.1244, allocations: 8 kB / 325.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003473/0.1248, allocations: 219 kB / 325.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.1248, allocations: 4 kB / 325.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000762/0.1256, allocations: 128 kB / 325.6 MB, free: 15.15 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.0001726/0.1258, allocations: 107.3 kB / 325.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.1284, allocations: 0.7496 MB / 326.4 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.541e-06/0.1284, allocations: 7.938 kB / 326.4 MB, free: 14.28 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006495/0.1291, allocations: 196.1 kB / 326.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/0.1298, allocations: 85.02 kB / 326.7 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.1325, allocations: 1.253 MB / 327.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.1331, allocations: 0.8113 MB / 328.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.1333, allocations: 27.44 kB / 328.8 MB, free: 11.84 MB / 282.7 MB Notification: Performance of SimCode: time 1.782e-06/0.1333, allocations: 0 / 328.8 MB, free: 11.84 MB / 282.7 MB Notification: Performance of Templates: time 0.01106/0.1444, allocations: 5.242 MB / 334 MB, free: 6.598 MB / 282.7 MB