Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001691/0.001691, allocations: 105.6 kB / 17.06 MB, free: 6.023 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.002147/0.002148, allocations: 195 kB / 18 MB, free: 5.105 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.904/1.904, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.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.002221/0.002221, allocations: 55.92 kB / 327.9 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1584, allocations: 46.62 MB / 374.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004931/0.1634, allocations: 3.117 MB / 377.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.1657, allocations: 1.014 MB / 378.6 MB, free: 440 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.1659, allocations: 19.88 kB / 378.6 MB, free: 420 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000422/0.1664, allocations: 87.17 kB / 378.7 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.1667, allocations: 99.08 kB / 378.8 MB, free: 232 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3188/0.4855, allocations: 233.5 kB / 379 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.4868, allocations: 0.5179 MB / 379.5 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004191/0.4872, allocations: 175 kB / 379.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003132/0.4876, allocations: 202 kB / 379.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003284/0.4879, allocations: 209.7 kB / 380.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.266e-05/0.488, allocations: 41.25 kB / 380.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.856e-05/0.4881, allocations: 41.25 kB / 380.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.4882, allocations: 99.03 kB / 380.3 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.4884, allocations: 224 kB / 380.5 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000735/0.4892, allocations: 0.4923 MB / 381 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.4892, allocations: 0 / 381 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4892, allocations: 0 / 381 MB, free: 9.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.4892, allocations: 0.625 kB / 381 MB, free: 9.523 MB / 318.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.001523/0.4907, allocations: 0.7657 MB / 381.8 MB, free: 9.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.4908, allocations: 13.8 kB / 381.8 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.491, allocations: 53.91 kB / 381.8 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.4917, allocations: 378.9 kB / 382.2 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.4918, allocations: 29.06 kB / 382.2 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.442e-05/0.4919, allocations: 40.5 kB / 382.3 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.4929, allocations: 445.4 kB / 382.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.4929, allocations: 11.98 kB / 382.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.493, allocations: 19.78 kB / 382.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.493, allocations: 9.25 kB / 382.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.4941, allocations: 374.9 kB / 383.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002275/0.4964, allocations: 1.56 MB / 384.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009253/0.4973, allocations: 320.8 kB / 385 MB, free: 7.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004561/0.4978, allocations: 164.8 kB / 385.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.964e-05/0.4978, allocations: 8.344 kB / 385.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.4979, allocations: 40.59 kB / 385.2 MB, free: 7.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.4979, allocations: 0 / 385.2 MB, free: 7.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003565/0.5015, allocations: 1.382 MB / 386.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.5015, allocations: 86.11 kB / 386.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000435/0.502, allocations: 363.5 kB / 387 MB, free: 6.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.502, allocations: 35.41 kB / 387.1 MB, free: 6.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.5022, allocations: 242.2 kB / 387.3 MB, free: 6.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.066e-05/0.5023, allocations: 118 kB / 387.4 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.5024, allocations: 75.34 kB / 387.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.5025, allocations: 349.7 kB / 387.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.5031, allocations: 177.2 kB / 388 MB, free: 5.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000607/0.5037, allocations: 255.2 kB / 388.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009653/0.5046, allocations: 385.6 kB / 388.6 MB, free: 5.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5047, allocations: 5.094 kB / 388.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001197/0.5059, allocations: 493.4 kB / 389.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.5059, allocations: 6.328 kB / 389.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.5059, allocations: 6.469 kB / 389.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.5059, allocations: 4.719 kB / 389.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.507, allocations: 213 kB / 389.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001678/0.5086, allocations: 1.571 MB / 390.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.509, allocations: 38.09 kB / 390.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-05/0.5091, allocations: 16.59 kB / 391 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005954/0.5097, allocations: 287.1 kB / 391.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004693/0.5102, allocations: 234.5 kB / 391.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008433/0.511, allocations: 372.2 kB / 391.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.613e-06/0.511, allocations: 0 / 391.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001027/0.5121, allocations: 470.2 kB / 392.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.5121, allocations: 5.844 kB / 392.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.5121, allocations: 3.469 kB / 392.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.056e-06/0.5121, allocations: 4.688 kB / 392.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/0.5126, allocations: 120.8 kB / 392.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.5126, allocations: 11.62 kB / 392.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.5129, allocations: 39.34 kB / 392.5 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.513, allocations: 14.94 kB / 392.5 MB, free: 3.059 MB / 318.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.0001311/0.5131, allocations: 199.2 kB / 392.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.608e-05/0.5132, allocations: 38.19 kB / 392.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.723e-05/0.5133, allocations: 47.53 kB / 392.8 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.5133, allocations: 7.062 kB / 392.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.5133, allocations: 4.969 kB / 392.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5133, allocations: 4.281 kB / 392.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.5151, allocations: 0.9187 MB / 393.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.5152, allocations: 1.25 kB / 393.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004653/0.5156, allocations: 86.52 kB / 393.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.5157, allocations: 3.312 kB / 393.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.5157, allocations: 12.09 kB / 393.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.5157, allocations: 6.203 kB / 393.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.5157, allocations: 3.844 kB / 393.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.5174, allocations: 0.664 MB / 394.5 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.5176, allocations: 142.4 kB / 394.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.668e-05/0.5176, allocations: 7.094 kB / 394.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.5179, allocations: 32.42 kB / 394.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.518, allocations: 23.62 kB / 394.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.5181, allocations: 11.61 kB / 394.7 MB, free: 1.781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003333/0.5184, allocations: 248.9 kB / 394.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5184, allocations: 4 kB / 394.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006773/0.5191, allocations: 139.6 kB / 395.1 MB, free: 1.629 MB / 318.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.0001705/0.5193, allocations: 106.2 kB / 395.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002258/0.5215, allocations: 0.6976 MB / 395.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5216, allocations: 0 / 395.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004891/0.522, allocations: 181 kB / 396 MB, free: 1.336 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.5228, allocations: 101.3 kB / 396.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.5248, allocations: 1.012 MB / 397.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.5252, allocations: 0.8219 MB / 398 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002775/0.5255, allocations: 61.36 kB / 398 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.5256, allocations: 33.44 kB / 398.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5256, allocations: 1.375 kB / 398.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of Templates: time 0.01225/0.5379, allocations: 4.849 MB / 402.9 MB, free: 14.45 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)