Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.172/1.172, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002722/0.0002723, allocations: 7.984 kB / 158.3 MB, free: 15.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05987/0.06017, allocations: 25.17 MB / 183.5 MB, free: 5.988 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.2602, allocations: 38.1 MB / 221.6 MB, free: 5.672 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.2605, allocations: 62.06 kB / 221.7 MB, free: 5.664 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0353/0.2958, allocations: 7.911 MB / 229.6 MB, free: 1.703 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.857e-06/0.2958, allocations: 0 / 229.6 MB, free: 1.703 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.893e-05/0.2959, allocations: 8 kB / 229.6 MB, free: 1.695 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001166/0.2971, allocations: 0.6841 MB / 230.3 MB, free: 0.9883 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.2971, allocations: 8.031 kB / 230.3 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.2972, allocations: 39.53 kB / 230.3 MB, free: 0.9414 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.2979, allocations: 348.8 kB / 230.6 MB, free: 0.5898 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.621e-05/0.298, allocations: 53.02 kB / 230.7 MB, free: 0.543 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.205e-05/0.298, allocations: 37.98 kB / 230.7 MB, free: 0.5156 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000953/0.299, allocations: 409.8 kB / 231.1 MB, free: 204 kB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.2991, allocations: 4 kB / 231.1 MB, free: 200 kB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.2991, allocations: 14.75 kB / 231.1 MB, free: 196 kB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2991, allocations: 15.92 kB / 231.2 MB, free: 180 kB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.3003, allocations: 374.7 kB / 231.5 MB, free: 15.88 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002604/0.3029, allocations: 1.153 MB / 232.7 MB, free: 14.9 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.3041, allocations: 338.9 kB / 233 MB, free: 14.64 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.3041, allocations: 3.938 kB / 233 MB, free: 14.63 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.3042, allocations: 34.56 kB / 233.1 MB, free: 14.59 MB / 186.7 MB Notification: Performance of pre-optimization done (n=26): time 3.677e-06/0.3042, allocations: 0 / 233.1 MB, free: 14.59 MB / 186.7 MB Notification: Performance of matching and sorting (n=28): time 0.004227/0.3084, allocations: 1.437 MB / 234.5 MB, free: 13.28 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3086, allocations: 106.8 kB / 234.6 MB, free: 13.15 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.309, allocations: 275.5 kB / 234.9 MB, free: 12.92 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.239e-05/0.3091, allocations: 32.08 kB / 234.9 MB, free: 12.89 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.3093, allocations: 260.3 kB / 235.1 MB, free: 12.67 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.3094, allocations: 100.3 kB / 235.2 MB, free: 12.58 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.3095, allocations: 3.5 kB / 235.2 MB, free: 12.58 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.3097, allocations: 333.7 kB / 235.6 MB, free: 12.25 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/0.3102, allocations: 158.1 kB / 235.7 MB, free: 12.14 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.3108, allocations: 224 kB / 235.9 MB, free: 11.94 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005348/0.3114, allocations: 171.5 kB / 236.1 MB, free: 11.82 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.939e-06/0.3114, allocations: 0 / 236.1 MB, free: 11.82 MB / 186.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001262/0.3127, allocations: 437.7 kB / 236.5 MB, free: 11.48 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3127, allocations: 4 kB / 236.5 MB, free: 11.48 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.623e-06/0.3127, allocations: 3.984 kB / 236.6 MB, free: 11.48 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.3128, allocations: 4 kB / 236.6 MB, free: 11.47 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007393/0.3135, allocations: 143.4 kB / 236.7 MB, free: 11.34 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.3136, allocations: 11.92 kB / 236.7 MB, free: 11.32 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.314, allocations: 42.66 kB / 236.7 MB, free: 11.29 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.314, allocations: 8 kB / 236.8 MB, free: 11.28 MB / 186.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 (43): * Single equations (assignments): 43 * 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.0002873/0.3143, allocations: 167.2 kB / 236.9 MB, free: 11.13 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3144, allocations: 31.62 kB / 236.9 MB, free: 11.1 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.575e-05/0.3145, allocations: 42.14 kB / 237 MB, free: 11.08 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.271e-06/0.3145, allocations: 4 kB / 237 MB, free: 11.07 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.424e-06/0.3146, allocations: 0 / 237 MB, free: 11.07 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.512e-06/0.3146, allocations: 4 kB / 237 MB, free: 11.07 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.3167, allocations: 0.9049 MB / 237.9 MB, free: 10.27 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.176e-06/0.3167, allocations: 0 / 237.9 MB, free: 10.27 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.3173, allocations: 103.3 kB / 238 MB, free: 10.17 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.3174, allocations: 4 kB / 238 MB, free: 10.17 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.3174, allocations: 6.5 kB / 238 MB, free: 10.16 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.154e-06/0.3174, allocations: 0 / 238 MB, free: 10.16 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.313e-06/0.3174, allocations: 4 kB / 238 MB, free: 10.16 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.3194, allocations: 0.7431 MB / 238.8 MB, free: 9.492 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.3196, allocations: 103.5 kB / 238.9 MB, free: 9.375 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.247e-05/0.3197, allocations: 14.92 kB / 238.9 MB, free: 9.363 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.3202, allocations: 55.52 kB / 238.9 MB, free: 9.316 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.141e-05/0.3203, allocations: 27.83 kB / 239 MB, free: 9.289 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.3203, allocations: 11.88 kB / 239 MB, free: 9.281 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003499/0.3207, allocations: 223.9 kB / 239.2 MB, free: 9.105 MB / 186.7 MB Notification: Performance of sort global known variables: time 6.99e-07/0.3207, allocations: 0 / 239.2 MB, free: 9.105 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005539/0.3213, allocations: 79.67 kB / 239.3 MB, free: 9.035 MB / 186.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 (28): * Single equations (assignments): 28 * 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.0001775/0.3215, allocations: 106.8 kB / 239.4 MB, free: 8.926 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.3227, allocations: 375 kB / 239.7 MB, free: 8.637 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.942e-06/0.3227, allocations: 4 kB / 239.7 MB, free: 8.633 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005951/0.3233, allocations: 192.8 kB / 239.9 MB, free: 8.48 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000599/0.3239, allocations: 77.25 kB / 240 MB, free: 8.418 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.3269, allocations: 1.269 MB / 241.3 MB, free: 7.168 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005492/0.3274, allocations: 0.8073 MB / 242.1 MB, free: 6.328 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.3276, allocations: 31.44 kB / 242.1 MB, free: 6.297 MB / 186.7 MB Notification: Performance of SimCode: time 1.599e-06/0.3276, allocations: 4 kB / 242.1 MB, free: 6.293 MB / 186.7 MB Notification: Performance of Templates: time 0.009134/0.3368, allocations: 4.462 MB / 246.6 MB, free: 1.895 MB / 186.7 MB