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.0008763/0.000876, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007318/0.007318, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.654/1.654, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004732/0.0004731, allocations: 12 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2589, allocations: 47.59 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003489/0.2624, allocations: 2.766 MB / 329.8 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.2645, allocations: 0.9832 MB / 330.8 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002859/0.2648, allocations: 13.22 kB / 330.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003602/0.2652, allocations: 64.67 kB / 330.9 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.2655, allocations: 91.23 kB / 330.9 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005434/0.266, allocations: 202.8 kB / 331.1 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005239/0.2665, allocations: 0.4956 MB / 331.6 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002929/0.2668, allocations: 160 kB / 331.8 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.2671, allocations: 159.7 kB / 331.9 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002607/0.2673, allocations: 179.5 kB / 332.1 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.2674, allocations: 15.75 kB / 332.1 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.105e-05/0.2675, allocations: 14.91 kB / 332.2 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.2676, allocations: 73.25 kB / 332.2 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002095/0.2678, allocations: 207.7 kB / 332.4 MB, free: 13.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.2683, allocations: 445.9 kB / 332.9 MB, free: 12.94 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.2683, allocations: 4 kB / 332.9 MB, free: 12.94 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2683, allocations: 4.938 kB / 332.9 MB, free: 12.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.2683, allocations: 0 / 332.9 MB, free: 12.93 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.001499/0.2698, allocations: 0.7031 MB / 333.6 MB, free: 12.34 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.2699, allocations: 13.72 kB / 333.6 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.27, allocations: 49.88 kB / 333.6 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.2706, allocations: 368.7 kB / 334 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/0.2706, allocations: 32.91 kB / 334 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.403e-05/0.2707, allocations: 40.12 kB / 334.1 MB, free: 11.94 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.2718, allocations: 476.1 kB / 334.5 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.2718, allocations: 6.203 kB / 334.5 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.962e-05/0.2718, allocations: 15.25 kB / 334.6 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.2719, allocations: 13.44 kB / 334.6 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.2729, allocations: 422.9 kB / 335 MB, free: 11.27 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.275, allocations: 1.579 MB / 336.6 MB, free: 9.598 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008648/0.2759, allocations: 338.6 kB / 336.9 MB, free: 9.258 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004749/0.2763, allocations: 188.7 kB / 337.1 MB, free: 9.07 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.2764, allocations: 11.94 kB / 337.1 MB, free: 9.059 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.2764, allocations: 38.56 kB / 337.1 MB, free: 9.012 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2764, allocations: 0 / 337.1 MB, free: 9.012 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003352/0.2798, allocations: 1.517 MB / 338.6 MB, free: 7.402 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.2799, allocations: 89.09 kB / 338.7 MB, free: 7.297 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/0.2803, allocations: 361.5 kB / 339.1 MB, free: 6.934 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.2803, allocations: 33.7 kB / 339.1 MB, free: 6.895 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.2805, allocations: 248 kB / 339.4 MB, free: 6.648 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.566e-05/0.2806, allocations: 114.3 kB / 339.5 MB, free: 6.535 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/0.2806, allocations: 37.7 kB / 339.5 MB, free: 6.492 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.2808, allocations: 354.8 kB / 339.8 MB, free: 6.137 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/0.2813, allocations: 184.8 kB / 340 MB, free: 5.957 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005367/0.2818, allocations: 272.8 kB / 340.3 MB, free: 5.656 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009575/0.2828, allocations: 439.3 kB / 340.7 MB, free: 5.199 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2828, allocations: 4 kB / 340.7 MB, free: 5.195 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001147/0.2839, allocations: 0.5248 MB / 341.3 MB, free: 4.664 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.641e-05/0.2841, allocations: 152 kB / 341.4 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2841, allocations: 4 kB / 341.4 MB, free: 4.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2841, allocations: 4 kB / 341.4 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009444/0.285, allocations: 259.7 kB / 341.7 MB, free: 4.223 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.2867, allocations: 1.54 MB / 343.2 MB, free: 2.551 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.2871, allocations: 52.05 kB / 343.3 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.2871, allocations: 12 kB / 343.3 MB, free: 2.488 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.752e-06/0.2871, allocations: 4 kB / 343.3 MB, free: 2.484 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009608/0.2881, allocations: 455.5 kB / 343.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2881, allocations: 4 kB / 343.7 MB, free: 2.035 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.632e-06/0.2881, allocations: 4 kB / 343.7 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.2886, allocations: 132 kB / 343.9 MB, free: 1.902 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.2886, allocations: 4 kB / 343.9 MB, free: 1.898 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.2889, allocations: 43.95 kB / 343.9 MB, free: 1.855 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.2889, allocations: 19.94 kB / 343.9 MB, free: 1.836 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.0002177/0.2892, allocations: 240.9 kB / 344.2 MB, free: 1.59 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/0.2892, allocations: 39.53 kB / 344.2 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.772e-05/0.2893, allocations: 48.23 kB / 344.2 MB, free: 1.504 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2893, allocations: 4 kB / 344.2 MB, free: 1.5 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.2893, allocations: 0 / 344.2 MB, free: 1.5 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2893, allocations: 0 / 344.2 MB, free: 1.5 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.291, allocations: 0.9728 MB / 345.2 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.291, allocations: 0 / 345.2 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004127/0.2914, allocations: 96 kB / 345.3 MB, free: 376 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2914, allocations: 4 kB / 345.3 MB, free: 372 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.2915, allocations: 11.94 kB / 345.3 MB, free: 360 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.2915, allocations: 4 kB / 345.3 MB, free: 356 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2915, allocations: 3.938 kB / 345.3 MB, free: 352 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/0.293, allocations: 0.7453 MB / 346.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.2931, allocations: 132.7 kB / 346.2 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.2931, allocations: 15.94 kB / 346.2 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.2935, allocations: 47.95 kB / 346.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.2935, allocations: 24.09 kB / 346.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.2936, allocations: 12 kB / 346.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002535/0.2938, allocations: 251.2 kB / 346.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2938, allocations: 0 / 346.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004991/0.2943, allocations: 136 kB / 346.7 MB, free: 14.95 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.0001166/0.2945, allocations: 103.2 kB / 346.8 MB, free: 14.84 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.2965, allocations: 0.8011 MB / 347.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2965, allocations: 0 / 347.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004817/0.297, allocations: 200.1 kB / 347.8 MB, free: 13.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007486/0.2977, allocations: 101.4 kB / 347.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.2997, allocations: 1.267 MB / 349.1 MB, free: 12.44 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.3001, allocations: 0.8236 MB / 350 MB, free: 11.59 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000246/0.3003, allocations: 71.22 kB / 350 MB, free: 11.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.821e-05/0.3005, allocations: 31.44 kB / 350.1 MB, free: 11.49 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3005, allocations: 0 / 350.1 MB, free: 11.49 MB / 286.1 MB Notification: Performance of Templates: time 0.008653/0.3091, allocations: 4.276 MB / 354.3 MB, free: 7.211 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)