Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 192 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.299/1.299, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 47.94 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2318, allocations: 46.64 MB / 324.7 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003682/0.2356, allocations: 3.144 MB / 327.8 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.2372, allocations: 0.9976 MB / 328.8 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002107/0.2374, allocations: 14.66 kB / 328.8 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003572/0.2378, allocations: 63.56 kB / 328.9 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002055/0.238, allocations: 86.83 kB / 329 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.2385, allocations: 203.6 kB / 329.2 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005131/0.239, allocations: 0.5033 MB / 329.7 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.2393, allocations: 152.6 kB / 329.8 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.2395, allocations: 173.1 kB / 330 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.2397, allocations: 200.8 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-05/0.2398, allocations: 22.19 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.924e-05/0.2399, allocations: 22.78 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.24, allocations: 85.16 kB / 330.3 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.2402, allocations: 201.1 kB / 330.5 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004247/0.2406, allocations: 461.3 kB / 331 MB, free: 13.15 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.2406, allocations: 0 / 331 MB, free: 13.15 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.2406, allocations: 3.938 kB / 331 MB, free: 13.15 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.2406, allocations: 0 / 331 MB, free: 13.15 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001346/0.242, allocations: 0.7641 MB / 331.7 MB, free: 12.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.242, allocations: 8.906 kB / 331.7 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.761e-05/0.2421, allocations: 53.62 kB / 331.8 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004386/0.2426, allocations: 366.2 kB / 332.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.2426, allocations: 28.69 kB / 332.2 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.126e-05/0.2427, allocations: 43.59 kB / 332.2 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008936/0.2436, allocations: 455.9 kB / 332.7 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.2436, allocations: 2.188 kB / 332.7 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.2437, allocations: 15.41 kB / 332.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.2437, allocations: 12.41 kB / 332.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000952/0.2447, allocations: 373.5 kB / 333.1 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.2466, allocations: 1.584 MB / 334.6 MB, free: 9.941 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007485/0.2474, allocations: 314.6 kB / 335 MB, free: 9.625 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.2478, allocations: 160.8 kB / 335.1 MB, free: 9.465 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.2478, allocations: 7.938 kB / 335.1 MB, free: 9.457 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.2479, allocations: 42.55 kB / 335.2 MB, free: 9.406 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.192e-06/0.2479, allocations: 0 / 335.2 MB, free: 9.406 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.002907/0.2508, allocations: 1.376 MB / 336.5 MB, free: 7.938 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.2508, allocations: 81.11 kB / 336.6 MB, free: 7.84 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.2512, allocations: 369.5 kB / 337 MB, free: 7.469 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.2512, allocations: 33.7 kB / 337 MB, free: 7.43 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.2514, allocations: 247.8 kB / 337.2 MB, free: 7.184 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.425e-05/0.2515, allocations: 114.5 kB / 337.4 MB, free: 7.07 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.2516, allocations: 78.12 kB / 337.4 MB, free: 6.988 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.2517, allocations: 346.8 kB / 337.8 MB, free: 6.641 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004213/0.2522, allocations: 178.5 kB / 337.9 MB, free: 6.461 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004585/0.2526, allocations: 248.8 kB / 338.2 MB, free: 6.188 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007981/0.2534, allocations: 391.3 kB / 338.6 MB, free: 5.777 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2534, allocations: 0 / 338.6 MB, free: 5.777 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009831/0.2544, allocations: 493.2 kB / 339.1 MB, free: 5.289 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.2545, allocations: 8 kB / 339.1 MB, free: 5.281 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2545, allocations: 12.14 kB / 339.1 MB, free: 5.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2545, allocations: 4 kB / 339.1 MB, free: 5.266 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007842/0.2553, allocations: 215.7 kB / 339.3 MB, free: 5.055 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.2567, allocations: 1.454 MB / 340.7 MB, free: 3.469 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.257, allocations: 47.98 kB / 340.8 MB, free: 3.422 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.257, allocations: 12 kB / 340.8 MB, free: 3.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004891/0.2575, allocations: 276.9 kB / 341.1 MB, free: 3.137 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004439/0.258, allocations: 236.8 kB / 341.3 MB, free: 2.875 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007264/0.2587, allocations: 379.4 kB / 341.7 MB, free: 2.477 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.2587, allocations: 0 / 341.7 MB, free: 2.477 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008933/0.2596, allocations: 473 kB / 342.1 MB, free: 2.008 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.856e-06/0.2596, allocations: 4.625 kB / 342.1 MB, free: 2.004 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2596, allocations: 4 kB / 342.1 MB, free: 2 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.957e-06/0.2596, allocations: 4 kB / 342.1 MB, free: 1.996 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.2601, allocations: 119.8 kB / 342.3 MB, free: 1.879 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2601, allocations: 8 kB / 342.3 MB, free: 1.871 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.2604, allocations: 44.09 kB / 342.3 MB, free: 1.828 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.2604, allocations: 16 kB / 342.3 MB, free: 1.812 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.2605, allocations: 204.1 kB / 342.5 MB, free: 1.605 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.2606, allocations: 39.53 kB / 342.6 MB, free: 1.566 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.275e-05/0.2607, allocations: 52.23 kB / 342.6 MB, free: 1.516 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.2607, allocations: 0 / 342.6 MB, free: 1.516 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2607, allocations: 4 kB / 342.6 MB, free: 1.512 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2607, allocations: 7.938 kB / 342.6 MB, free: 1.504 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.2622, allocations: 0.9104 MB / 343.5 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.2622, allocations: 3.984 kB / 343.5 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.2626, allocations: 91.81 kB / 343.6 MB, free: 444 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2626, allocations: 0 / 343.6 MB, free: 444 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.2626, allocations: 8 kB / 343.6 MB, free: 436 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2627, allocations: 4 kB / 343.6 MB, free: 432 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2627, allocations: 4.125 kB / 343.7 MB, free: 428 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.2639, allocations: 0.6745 MB / 344.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.2641, allocations: 140.6 kB / 344.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.2641, allocations: 8 kB / 344.5 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.2644, allocations: 35.95 kB / 344.5 MB, free: 15.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.105e-05/0.2645, allocations: 23.97 kB / 344.5 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.2645, allocations: 12 kB / 344.5 MB, free: 15.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002285/0.2648, allocations: 251.2 kB / 344.8 MB, free: 15.24 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2648, allocations: 0 / 344.8 MB, free: 15.24 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005109/0.2653, allocations: 136 kB / 344.9 MB, free: 15.11 MB / 286.1 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001375/0.2654, allocations: 107.2 kB / 345 MB, free: 14.99 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.2672, allocations: 0.6923 MB / 345.7 MB, free: 14.3 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2672, allocations: 3.938 kB / 345.7 MB, free: 14.3 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004232/0.2676, allocations: 179.8 kB / 345.9 MB, free: 14.12 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006201/0.2682, allocations: 97.8 kB / 346 MB, free: 14.03 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.2699, allocations: 1.165 MB / 347.2 MB, free: 12.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.2703, allocations: 0.8159 MB / 348 MB, free: 11.98 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.2705, allocations: 71.22 kB / 348 MB, free: 11.91 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.956e-05/0.2706, allocations: 31.44 kB / 348.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2706, allocations: 0 / 348.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of Templates: time 0.007824/0.2785, allocations: 4.318 MB / 352.4 MB, free: 7.562 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)