Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001516/0.001516, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001963/0.001963, allocations: 199.3 kB / 16.14 MB, free: 6.664 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.52/1.52, allocations: 205.1 MB / 222 MB, free: 4.77 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.001255/0.001255, allocations: 51.94 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2577, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004689/0.2624, allocations: 3.151 MB / 327.8 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00248/0.2649, allocations: 0.9974 MB / 328.8 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003155/0.2653, allocations: 14.66 kB / 328.8 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003852/0.2657, allocations: 63.81 kB / 328.9 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002472/0.2659, allocations: 94.94 kB / 329 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006505/0.2666, allocations: 195.2 kB / 329.2 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007363/0.2674, allocations: 0.4957 MB / 329.7 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004331/0.2678, allocations: 156.2 kB / 329.8 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/0.2681, allocations: 185.4 kB / 330 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002627/0.2684, allocations: 189.2 kB / 330.2 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.375e-05/0.2684, allocations: 22.03 kB / 330.2 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.864e-05/0.2685, allocations: 23.06 kB / 330.2 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.2686, allocations: 88.89 kB / 330.3 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.2689, allocations: 201 kB / 330.5 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004434/0.2693, allocations: 460.4 kB / 331 MB, free: 13.17 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2693, allocations: 0 / 331 MB, free: 13.17 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2694, allocations: 1.188 kB / 331 MB, free: 13.17 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.2694, allocations: 0 / 331 MB, free: 13.17 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.001517/0.2709, allocations: 0.767 MB / 331.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.271, allocations: 13.38 kB / 331.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.2711, allocations: 53.97 kB / 331.8 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.2716, allocations: 361 kB / 332.2 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.2716, allocations: 28.66 kB / 332.2 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.29e-05/0.2717, allocations: 45.11 kB / 332.2 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.2728, allocations: 451.1 kB / 332.7 MB, free: 11.83 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.2729, allocations: 5.375 kB / 332.7 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.599e-05/0.2729, allocations: 16.41 kB / 332.7 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.2729, allocations: 8.688 kB / 332.7 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.2741, allocations: 380.9 kB / 333.1 MB, free: 11.63 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.2765, allocations: 1.58 MB / 334.6 MB, free: 9.961 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008516/0.2773, allocations: 307.3 kB / 334.9 MB, free: 9.652 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004474/0.2778, allocations: 164.8 kB / 335.1 MB, free: 9.488 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.2778, allocations: 11.92 kB / 335.1 MB, free: 9.477 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.2779, allocations: 38.5 kB / 335.2 MB, free: 9.43 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.262e-06/0.2779, allocations: 0 / 335.2 MB, free: 9.43 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003185/0.2811, allocations: 1.375 MB / 336.5 MB, free: 7.961 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.2811, allocations: 81.11 kB / 336.6 MB, free: 7.863 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.2815, allocations: 369.5 kB / 337 MB, free: 7.492 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.2816, allocations: 29.7 kB / 337 MB, free: 7.457 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.2817, allocations: 248 kB / 337.2 MB, free: 7.211 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.69e-05/0.2818, allocations: 110.3 kB / 337.3 MB, free: 7.102 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.282, allocations: 78.12 kB / 337.4 MB, free: 7.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2821, allocations: 350.8 kB / 337.8 MB, free: 6.668 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.2826, allocations: 178.4 kB / 337.9 MB, free: 6.488 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.2831, allocations: 248.8 kB / 338.2 MB, free: 6.215 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008821/0.284, allocations: 399.3 kB / 338.6 MB, free: 5.797 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.284, allocations: 0 / 338.6 MB, free: 5.797 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001111/0.2851, allocations: 493.2 kB / 339.1 MB, free: 5.309 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.2851, allocations: 8 kB / 339.1 MB, free: 5.301 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.2851, allocations: 0 / 339.1 MB, free: 5.301 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.2852, allocations: 4 kB / 339.1 MB, free: 5.297 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008369/0.286, allocations: 211.9 kB / 339.3 MB, free: 5.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.2877, allocations: 1.466 MB / 340.7 MB, free: 3.492 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.288, allocations: 35.89 kB / 340.8 MB, free: 3.457 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.288, allocations: 16 kB / 340.8 MB, free: 3.441 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005254/0.2886, allocations: 280.9 kB / 341.1 MB, free: 3.164 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004688/0.289, allocations: 240.8 kB / 341.3 MB, free: 2.898 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007602/0.2898, allocations: 371.4 kB / 341.7 MB, free: 2.508 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.734e-06/0.2898, allocations: 0 / 341.7 MB, free: 2.508 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009721/0.2908, allocations: 477 kB / 342.1 MB, free: 2.035 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.2908, allocations: 4 kB / 342.1 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.2908, allocations: 4 kB / 342.1 MB, free: 2.027 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.803e-06/0.2908, allocations: 8.219 kB / 342.1 MB, free: 2.02 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.2914, allocations: 115.9 kB / 342.3 MB, free: 1.906 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2914, allocations: 11.92 kB / 342.3 MB, free: 1.895 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.2917, allocations: 31.97 kB / 342.3 MB, free: 1.863 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.2917, allocations: 19.94 kB / 342.3 MB, free: 1.844 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.0001832/0.2919, allocations: 204.1 kB / 342.5 MB, free: 1.637 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.626e-05/0.292, allocations: 43.53 kB / 342.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.122e-05/0.2921, allocations: 52.23 kB / 342.6 MB, free: 1.543 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2921, allocations: 4 kB / 342.6 MB, free: 1.539 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2921, allocations: 0 / 342.6 MB, free: 1.539 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.2921, allocations: 3.938 kB / 342.6 MB, free: 1.535 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.2939, allocations: 0.9143 MB / 343.5 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2939, allocations: 0 / 343.5 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.2943, allocations: 95.94 kB / 343.6 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.2943, allocations: 0 / 343.6 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.2944, allocations: 8 kB / 343.6 MB, free: 464 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.754e-06/0.2944, allocations: 7.938 kB / 343.6 MB, free: 456 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2944, allocations: 0 / 343.6 MB, free: 456 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.2958, allocations: 0.6668 MB / 344.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.2959, allocations: 144.6 kB / 344.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.926e-05/0.296, allocations: 8 kB / 344.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.2963, allocations: 31.95 kB / 344.5 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.2964, allocations: 31.91 kB / 344.5 MB, free: 15.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.2964, allocations: 12 kB / 344.5 MB, free: 15.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002611/0.2967, allocations: 247.2 kB / 344.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2967, allocations: 0 / 344.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00056/0.2973, allocations: 140 kB / 344.9 MB, free: 15.13 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.0001339/0.2974, allocations: 103.2 kB / 345 MB, free: 15.02 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001831/0.2992, allocations: 0.6881 MB / 345.7 MB, free: 14.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2993, allocations: 0 / 345.7 MB, free: 14.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.2997, allocations: 184.5 kB / 345.9 MB, free: 14.15 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007387/0.3004, allocations: 105.3 kB / 346 MB, free: 14.05 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.3024, allocations: 1.173 MB / 347.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.3028, allocations: 0.8198 MB / 348 MB, free: 12 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002674/0.303, allocations: 63.23 kB / 348 MB, free: 11.94 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3032, allocations: 31.44 kB / 348.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3032, allocations: 0 / 348.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of Templates: time 0.008901/0.3121, allocations: 4.318 MB / 352.4 MB, free: 7.586 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.1_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)