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.001489/0.001494, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 195.1 kB / 16.53 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.504/1.504, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001381/0.001381, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2488, allocations: 46.64 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004087/0.253, allocations: 3.117 MB / 328.4 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.2549, allocations: 1.006 MB / 329.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002613/0.2552, allocations: 14.5 kB / 329.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003554/0.2556, allocations: 95.53 kB / 329.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.2558, allocations: 99.03 kB / 329.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.2564, allocations: 229.5 kB / 329.9 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005629/0.257, allocations: 0.5165 MB / 330.4 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003746/0.2574, allocations: 172.3 kB / 330.5 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.2576, allocations: 191.2 kB / 330.7 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002786/0.2579, allocations: 212.2 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.31e-05/0.2579, allocations: 40.84 kB / 331 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.99e-05/0.258, allocations: 40.66 kB / 331 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.2581, allocations: 101.2 kB / 331.1 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.2584, allocations: 216.4 kB / 331.3 MB, free: 13.28 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.259, allocations: 487 kB / 331.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.259, allocations: 3.984 kB / 331.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.259, allocations: 5.375 kB / 331.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.259, allocations: 0 / 331.8 MB, free: 12.91 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.00134/0.2604, allocations: 0.7674 MB / 332.6 MB, free: 12.26 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.2604, allocations: 9.094 kB / 332.6 MB, free: 12.26 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.378e-05/0.2605, allocations: 50.16 kB / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.261, allocations: 368.9 kB / 333 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.261, allocations: 29.06 kB / 333 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.784e-05/0.2611, allocations: 40.22 kB / 333.1 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009078/0.262, allocations: 456.2 kB / 333.5 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.2621, allocations: 5.078 kB / 333.5 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.2621, allocations: 16.25 kB / 333.5 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.2621, allocations: 8.438 kB / 333.5 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.2633, allocations: 383.6 kB / 333.9 MB, free: 11.16 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.2655, allocations: 1.571 MB / 335.5 MB, free: 9.5 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009169/0.2664, allocations: 322.6 kB / 335.8 MB, free: 9.176 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.2669, allocations: 160.8 kB / 336 MB, free: 9.016 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.2669, allocations: 3.938 kB / 336 MB, free: 9.012 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.267, allocations: 42.5 kB / 336 MB, free: 8.961 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.267, allocations: 0 / 336 MB, free: 8.961 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003422/0.2704, allocations: 1.377 MB / 337.4 MB, free: 7.492 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.2705, allocations: 85.09 kB / 337.5 MB, free: 7.391 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003795/0.2709, allocations: 361.5 kB / 337.8 MB, free: 7.031 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.2709, allocations: 33.7 kB / 337.8 MB, free: 6.992 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.2711, allocations: 243.9 kB / 338.1 MB, free: 6.75 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.509e-05/0.2712, allocations: 122.4 kB / 338.2 MB, free: 6.629 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.2713, allocations: 74.14 kB / 338.3 MB, free: 6.551 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2714, allocations: 350.8 kB / 338.6 MB, free: 6.199 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004776/0.2719, allocations: 174.5 kB / 338.8 MB, free: 6.023 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005289/0.2725, allocations: 240.8 kB / 339 MB, free: 5.758 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.2736, allocations: 399.8 kB / 339.4 MB, free: 5.34 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2736, allocations: 4 kB / 339.4 MB, free: 5.336 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001152/0.2747, allocations: 496.6 kB / 339.9 MB, free: 4.844 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.2748, allocations: 4 kB / 339.9 MB, free: 4.84 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.2748, allocations: 4.219 kB / 339.9 MB, free: 4.836 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.2748, allocations: 8 kB / 339.9 MB, free: 4.828 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009061/0.2757, allocations: 207.7 kB / 340.1 MB, free: 4.625 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/0.278, allocations: 1.584 MB / 341.7 MB, free: 2.902 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003952/0.2784, allocations: 31.97 kB / 341.7 MB, free: 2.871 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.2784, allocations: 15.98 kB / 341.8 MB, free: 2.855 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005949/0.279, allocations: 277 kB / 342 MB, free: 2.582 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004567/0.2795, allocations: 228.8 kB / 342.2 MB, free: 2.328 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009686/0.2805, allocations: 383.6 kB / 342.6 MB, free: 1.926 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.773e-06/0.2805, allocations: 0 / 342.6 MB, free: 1.926 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001182/0.2817, allocations: 464.8 kB / 343.1 MB, free: 1.465 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2817, allocations: 12.56 kB / 343.1 MB, free: 1.453 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2817, allocations: 0 / 343.1 MB, free: 1.453 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.132e-06/0.2817, allocations: 4 kB / 343.1 MB, free: 1.449 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005083/0.2823, allocations: 128 kB / 343.2 MB, free: 1.324 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.2823, allocations: 7.938 kB / 343.2 MB, free: 1.316 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/0.2826, allocations: 31.97 kB / 343.3 MB, free: 1.285 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.2826, allocations: 16 kB / 343.3 MB, free: 1.27 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.0001942/0.2828, allocations: 204.1 kB / 343.5 MB, free: 1.062 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.668e-05/0.2829, allocations: 39.53 kB / 343.5 MB, free: 1.023 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.283, allocations: 52.25 kB / 343.6 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.283, allocations: 7.938 kB / 343.6 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2831, allocations: 0 / 343.6 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2831, allocations: 0 / 343.6 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.2849, allocations: 0.9184 MB / 344.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2849, allocations: 0 / 344.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/0.2853, allocations: 87.88 kB / 344.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2853, allocations: 4.125 kB / 344.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.2854, allocations: 8 kB / 344.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2854, allocations: 4 kB / 344.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2854, allocations: 0 / 344.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.2871, allocations: 0.6861 MB / 345.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.2872, allocations: 132.7 kB / 345.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.288e-05/0.2873, allocations: 8 kB / 345.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.2876, allocations: 31.95 kB / 345.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.054e-05/0.2877, allocations: 23.97 kB / 345.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.2877, allocations: 12.12 kB / 345.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002507/0.2879, allocations: 259.1 kB / 345.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2879, allocations: 0 / 345.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005503/0.2885, allocations: 139.9 kB / 345.9 MB, free: 14.55 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.00015/0.2887, allocations: 103.7 kB / 346 MB, free: 14.44 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.2908, allocations: 0.7066 MB / 346.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2909, allocations: 0 / 346.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/0.2914, allocations: 184.5 kB / 346.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.2922, allocations: 105 kB / 347 MB, free: 13.46 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.2942, allocations: 1.011 MB / 348 MB, free: 12.4 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.2946, allocations: 0.8273 MB / 348.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002558/0.2948, allocations: 67.23 kB / 348.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.578e-05/0.295, allocations: 27.44 kB / 348.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.295, allocations: 0 / 348.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of Templates: time 0.009483/0.3044, allocations: 4.663 MB / 353.6 MB, free: 6.793 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)