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.001346/0.001345, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002556/0.002556, allocations: 192.7 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001186/0.001187, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3514, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005568/0.357, allocations: 3.152 MB / 328 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003113/0.3601, allocations: 0.9897 MB / 329 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004266/0.3606, allocations: 13.94 kB / 329 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004621/0.3611, allocations: 67.11 kB / 329.1 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.3614, allocations: 91.61 kB / 329.1 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007453/0.3622, allocations: 203.7 kB / 329.3 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007756/0.363, allocations: 0.52 MB / 329.9 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004116/0.3634, allocations: 173.7 kB / 330 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.3638, allocations: 198.3 kB / 330.2 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003367/0.3641, allocations: 205.3 kB / 330.4 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.754e-05/0.3642, allocations: 40.5 kB / 330.5 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.344e-05/0.3643, allocations: 41.94 kB / 330.5 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.3645, allocations: 104.2 kB / 330.6 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.3647, allocations: 220.7 kB / 330.8 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006278/0.3653, allocations: 488.1 kB / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3653, allocations: 0 / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3654, allocations: 0 / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3654, allocations: 4 kB / 331.3 MB, free: 13.04 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.001516/0.3669, allocations: 0.7722 MB / 332.1 MB, free: 12.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.367, allocations: 9.062 kB / 332.1 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.3671, allocations: 49.53 kB / 332.1 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005555/0.3677, allocations: 361.3 kB / 332.5 MB, free: 12.03 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.3677, allocations: 28.62 kB / 332.5 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.779e-05/0.3678, allocations: 41.5 kB / 332.6 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.3689, allocations: 455.4 kB / 333 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.3689, allocations: 1.188 kB / 333 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.486e-05/0.3689, allocations: 19.53 kB / 333 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.369, allocations: 9.531 kB / 333 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.37, allocations: 380.5 kB / 333.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.3723, allocations: 1.575 MB / 335 MB, free: 9.746 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008639/0.3732, allocations: 314.6 kB / 335.3 MB, free: 9.43 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004019/0.3736, allocations: 164.8 kB / 335.5 MB, free: 9.266 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.3737, allocations: 7.938 kB / 335.5 MB, free: 9.258 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.3737, allocations: 42.48 kB / 335.5 MB, free: 9.207 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.3737, allocations: 0 / 335.5 MB, free: 9.207 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003273/0.377, allocations: 1.384 MB / 336.9 MB, free: 7.73 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.373e-05/0.3771, allocations: 81.11 kB / 337 MB, free: 7.633 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.3776, allocations: 365.5 kB / 337.3 MB, free: 7.266 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.3776, allocations: 29.7 kB / 337.3 MB, free: 7.23 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.3778, allocations: 247.9 kB / 337.6 MB, free: 6.984 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.3779, allocations: 114.3 kB / 337.7 MB, free: 6.871 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.3781, allocations: 78.06 kB / 337.8 MB, free: 6.789 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.3783, allocations: 350.8 kB / 338.1 MB, free: 6.438 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004379/0.3787, allocations: 174.5 kB / 338.3 MB, free: 6.262 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004966/0.3792, allocations: 248.8 kB / 338.5 MB, free: 5.988 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008614/0.3801, allocations: 395.4 kB / 338.9 MB, free: 5.574 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3801, allocations: 0 / 338.9 MB, free: 5.574 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001156/0.3813, allocations: 0.4971 MB / 339.4 MB, free: 5.07 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3813, allocations: 4 kB / 339.4 MB, free: 5.066 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.3813, allocations: 4 kB / 339.4 MB, free: 5.062 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.3813, allocations: 4.219 kB / 339.4 MB, free: 5.059 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008755/0.3822, allocations: 207.7 kB / 339.6 MB, free: 4.855 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.384, allocations: 1.568 MB / 341.2 MB, free: 3.148 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.3845, allocations: 39.98 kB / 341.2 MB, free: 3.109 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.3845, allocations: 16 kB / 341.3 MB, free: 3.094 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005668/0.3851, allocations: 277 kB / 341.5 MB, free: 2.82 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004579/0.3856, allocations: 236.8 kB / 341.8 MB, free: 2.559 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007875/0.3864, allocations: 375.4 kB / 342.1 MB, free: 2.164 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.724e-06/0.3864, allocations: 0 / 342.1 MB, free: 2.164 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001113/0.3875, allocations: 477 kB / 342.6 MB, free: 1.691 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.3875, allocations: 4 kB / 342.6 MB, free: 1.688 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.3875, allocations: 4 kB / 342.6 MB, free: 1.684 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.803e-06/0.3875, allocations: 4 kB / 342.6 MB, free: 1.68 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.388, allocations: 120.1 kB / 342.7 MB, free: 1.562 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.388, allocations: 11.88 kB / 342.7 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.3884, allocations: 39.95 kB / 342.8 MB, free: 1.512 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.3884, allocations: 16 kB / 342.8 MB, free: 1.496 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.000181/0.3886, allocations: 192.2 kB / 343 MB, free: 1.301 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.716e-05/0.3887, allocations: 43.53 kB / 343 MB, free: 1.258 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.3888, allocations: 40.25 kB / 343.1 MB, free: 1.219 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3888, allocations: 15.92 kB / 343.1 MB, free: 1.203 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3888, allocations: 0 / 343.1 MB, free: 1.203 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3888, allocations: 4 kB / 343.1 MB, free: 1.199 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.3905, allocations: 0.9182 MB / 344 MB, free: 220 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3905, allocations: 0 / 344 MB, free: 220 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004066/0.3909, allocations: 91.86 kB / 344.1 MB, free: 128 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.391, allocations: 128 / 344.1 MB, free: 128 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.391, allocations: 12 kB / 344.1 MB, free: 116 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.391, allocations: 4 kB / 344.1 MB, free: 112 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.391, allocations: 7.875 kB / 344.1 MB, free: 104 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.3924, allocations: 0.6705 MB / 344.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.3926, allocations: 140.7 kB / 344.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.942e-05/0.3927, allocations: 8 kB / 344.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.3929, allocations: 31.95 kB / 345 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.934e-05/0.393, allocations: 27.91 kB / 345 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.3931, allocations: 8 kB / 345 MB, free: 15.17 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002811/0.3934, allocations: 251.1 kB / 345.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3934, allocations: 4 kB / 345.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005485/0.3939, allocations: 139.9 kB / 345.4 MB, free: 14.79 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.000153/0.3941, allocations: 111.2 kB / 345.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.3961, allocations: 0.6999 MB / 346.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3961, allocations: 0 / 346.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004391/0.3966, allocations: 188.4 kB / 346.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007798/0.3974, allocations: 101.3 kB / 346.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.3997, allocations: 1.175 MB / 347.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000515/0.4002, allocations: 0.8156 MB / 348.5 MB, free: 11.64 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002856/0.4005, allocations: 63.23 kB / 348.5 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.4006, allocations: 31.44 kB / 348.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of SimCode: time 1.804e-06/0.4006, allocations: 0 / 348.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of Templates: time 0.0103/0.4109, allocations: 4.518 MB / 353.1 MB, free: 7.023 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)