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.001191/0.001191, allocations: 86.06 kB / 16.31 MB, free: 6.449 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.001515/0.001515, allocations: 180 kB / 17.21 MB, free: 6.32 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.634/1.634, allocations: 205.4 MB / 223.4 MB, free: 5.27 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.0004921/0.0004921, allocations: 12 kB / 280.1 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2904, allocations: 47.59 MB / 327.7 MB, free: 1.453 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003134/0.2936, allocations: 2.653 MB / 330.4 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.2955, allocations: 0.9554 MB / 331.3 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.2957, allocations: 12.53 kB / 331.3 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.2961, allocations: 67.98 kB / 331.4 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.2963, allocations: 82.52 kB / 331.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.2968, allocations: 168 kB / 331.7 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.2973, allocations: 475.5 kB / 332.1 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.2975, allocations: 128.4 kB / 332.2 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.2978, allocations: 147.2 kB / 332.4 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.298, allocations: 170.8 kB / 332.6 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.298, allocations: 19.12 kB / 332.6 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.2981, allocations: 15.28 kB / 332.6 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.496e-05/0.2982, allocations: 72.09 kB / 332.7 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.947e-05/0.2983, allocations: 95.23 kB / 332.8 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.2986, allocations: 345.2 kB / 333.1 MB, free: 13.39 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.2986, allocations: 0 / 333.1 MB, free: 13.39 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2987, allocations: 1.344 kB / 333.1 MB, free: 13.39 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.2987, allocations: 0 / 333.1 MB, free: 13.39 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.001236/0.2999, allocations: 0.7221 MB / 333.8 MB, free: 12.79 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3, allocations: 9.312 kB / 333.8 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.3001, allocations: 48.62 kB / 333.9 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.3005, allocations: 352.2 kB / 334.2 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.005e-05/0.3006, allocations: 31.97 kB / 334.2 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.187e-05/0.3007, allocations: 40.75 kB / 334.3 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009175/0.3016, allocations: 468.7 kB / 334.7 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.3016, allocations: 6.219 kB / 334.7 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.3017, allocations: 15.59 kB / 334.8 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.3017, allocations: 8.844 kB / 334.8 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.3027, allocations: 421.3 kB / 335.2 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.3048, allocations: 1.594 MB / 336.8 MB, free: 10.19 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008057/0.3056, allocations: 338.9 kB / 337.1 MB, free: 9.848 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004259/0.3061, allocations: 196.6 kB / 337.3 MB, free: 9.652 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.3061, allocations: 3.984 kB / 337.3 MB, free: 9.648 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.3061, allocations: 34.56 kB / 337.3 MB, free: 9.605 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.3061, allocations: 0 / 337.3 MB, free: 9.605 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003177/0.3093, allocations: 1.509 MB / 338.8 MB, free: 8.004 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.3094, allocations: 81.11 kB / 338.9 MB, free: 7.906 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/0.3098, allocations: 361.5 kB / 339.3 MB, free: 7.543 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.3098, allocations: 33.64 kB / 339.3 MB, free: 7.504 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.31, allocations: 243.9 kB / 339.5 MB, free: 7.262 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.291e-05/0.3101, allocations: 114.5 kB / 339.7 MB, free: 7.148 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.945e-05/0.3101, allocations: 12 kB / 339.7 MB, free: 7.137 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3103, allocations: 350.8 kB / 340 MB, free: 6.785 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/0.3108, allocations: 188.8 kB / 340.2 MB, free: 6.602 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004856/0.3112, allocations: 264.8 kB / 340.5 MB, free: 6.309 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004654/0.3117, allocations: 207.8 kB / 340.7 MB, free: 6.105 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3117, allocations: 0 / 340.7 MB, free: 6.105 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001081/0.3128, allocations: 0.5286 MB / 341.2 MB, free: 5.57 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-05/0.3129, allocations: 152.1 kB / 341.3 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3129, allocations: 0 / 341.3 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.313, allocations: 8 kB / 341.3 MB, free: 5.383 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008799/0.3138, allocations: 259.7 kB / 341.6 MB, free: 5.129 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/0.3155, allocations: 1.532 MB / 343.1 MB, free: 3.465 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.3159, allocations: 52.05 kB / 343.2 MB, free: 3.414 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.3159, allocations: 16 kB / 343.2 MB, free: 3.398 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.657e-06/0.3159, allocations: 6.656 kB / 343.2 MB, free: 3.395 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009465/0.3169, allocations: 447.6 kB / 343.6 MB, free: 2.957 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3169, allocations: 7.953 kB / 343.6 MB, free: 2.949 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.651e-06/0.3169, allocations: 4 kB / 343.7 MB, free: 2.945 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004864/0.3174, allocations: 128 kB / 343.8 MB, free: 2.82 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3174, allocations: 4 kB / 343.8 MB, free: 2.816 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.3177, allocations: 47.95 kB / 343.8 MB, free: 2.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.3177, allocations: 19.98 kB / 343.8 MB, free: 2.75 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002295/0.318, allocations: 240.9 kB / 344.1 MB, free: 2.504 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.672e-05/0.318, allocations: 39.53 kB / 344.1 MB, free: 2.465 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.991e-05/0.3181, allocations: 48.19 kB / 344.2 MB, free: 2.418 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3181, allocations: 4 kB / 344.2 MB, free: 2.414 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3181, allocations: 0 / 344.2 MB, free: 2.414 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3181, allocations: 3.938 kB / 344.2 MB, free: 2.41 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.3198, allocations: 0.9729 MB / 345.1 MB, free: 1.371 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3198, allocations: 0 / 345.1 MB, free: 1.371 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004256/0.3202, allocations: 100 kB / 345.2 MB, free: 1.273 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.3203, allocations: 7.984 kB / 345.3 MB, free: 1.266 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.3203, allocations: 8 kB / 345.3 MB, free: 1.258 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.3203, allocations: 0 / 345.3 MB, free: 1.258 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3203, allocations: 4 kB / 345.3 MB, free: 1.254 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.3217, allocations: 0.7407 MB / 346 MB, free: 496 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.3218, allocations: 136.7 kB / 346.1 MB, free: 340 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.107e-05/0.3219, allocations: 12.12 kB / 346.2 MB, free: 328 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.3222, allocations: 51.89 kB / 346.2 MB, free: 276 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.297e-05/0.3223, allocations: 23.97 kB / 346.2 MB, free: 252 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.3223, allocations: 8 kB / 346.2 MB, free: 244 kB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002741/0.3226, allocations: 251.2 kB / 346.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.114e-06/0.3226, allocations: 0 / 346.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005418/0.3231, allocations: 135.9 kB / 346.6 MB, free: 15.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001062/0.3233, allocations: 107.6 kB / 346.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.3251, allocations: 0.7967 MB / 347.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3251, allocations: 0 / 347.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004451/0.3256, allocations: 204.1 kB / 347.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006366/0.3262, allocations: 101.4 kB / 347.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.3281, allocations: 1.201 MB / 349 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.3285, allocations: 0.8198 MB / 349.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002612/0.3288, allocations: 75.17 kB / 349.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.644e-05/0.3289, allocations: 27.44 kB / 349.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of SimCode: time 2.334e-06/0.3289, allocations: 0 / 349.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of Templates: time 0.008787/0.3377, allocations: 4.114 MB / 354 MB, free: 8.352 MB / 286.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)