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.001064/0.001064, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001232/0.001232, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 222.1 MB, free: 5.5 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.0004801/0.0004802, allocations: 12 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2529, allocations: 47.59 MB / 326.4 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003417/0.2563, allocations: 2.583 MB / 329 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.2585, allocations: 0.9609 MB / 330 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005161/0.2591, allocations: 16.5 kB / 330 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003208/0.2594, allocations: 47.09 kB / 330 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000612/0.26, allocations: 132.5 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005891/0.2606, allocations: 180.6 kB / 330.4 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007109/0.2614, allocations: 349.1 kB / 330.7 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003202/0.2617, allocations: 121.4 kB / 330.8 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.262, allocations: 155.4 kB / 331 MB, free: 13.97 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.2623, allocations: 166.2 kB / 331.1 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.017e-05/0.2624, allocations: 15.47 kB / 331.1 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.365e-05/0.2625, allocations: 15.81 kB / 331.2 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.538e-05/0.2626, allocations: 79.98 kB / 331.2 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2627, allocations: 94.8 kB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.2631, allocations: 344 kB / 331.7 MB, free: 13.47 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.2631, allocations: 0 / 331.7 MB, free: 13.47 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2631, allocations: 1.406 kB / 331.7 MB, free: 13.47 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.909e-05/0.2631, allocations: 0 / 331.7 MB, free: 13.47 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.001574/0.2647, allocations: 0.7256 MB / 332.4 MB, free: 12.86 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.2647, allocations: 9.062 kB / 332.4 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.2649, allocations: 48.62 kB / 332.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006709/0.2656, allocations: 356.7 kB / 332.8 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.94e-05/0.2656, allocations: 35.66 kB / 332.8 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-05/0.2657, allocations: 40.72 kB / 332.9 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2668, allocations: 453.9 kB / 333.3 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.427e-05/0.2668, allocations: 10.08 kB / 333.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.368e-05/0.2669, allocations: 15.44 kB / 333.3 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.2669, allocations: 12.78 kB / 333.4 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.268, allocations: 420 kB / 333.8 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.2705, allocations: 1.588 MB / 335.3 MB, free: 10.36 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008465/0.2714, allocations: 330.9 kB / 335.7 MB, free: 10.02 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.2715, allocations: 15.94 kB / 335.7 MB, free: 10.01 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.2715, allocations: 34.5 kB / 335.7 MB, free: 9.965 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.753e-06/0.2715, allocations: 4 kB / 335.7 MB, free: 9.961 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003483/0.275, allocations: 1.506 MB / 337.2 MB, free: 8.363 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.2751, allocations: 81.11 kB / 337.3 MB, free: 8.266 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004542/0.2756, allocations: 361.5 kB / 337.7 MB, free: 7.902 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.161e-05/0.2756, allocations: 33.7 kB / 337.7 MB, free: 7.863 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.2758, allocations: 251.9 kB / 337.9 MB, free: 7.613 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.053e-05/0.2759, allocations: 106.4 kB / 338 MB, free: 7.508 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.183e-05/0.2759, allocations: 12 kB / 338.1 MB, free: 7.496 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2761, allocations: 350.8 kB / 338.4 MB, free: 7.145 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004765/0.2766, allocations: 188.7 kB / 338.6 MB, free: 6.961 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005496/0.2771, allocations: 276.8 kB / 338.9 MB, free: 6.656 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004927/0.2776, allocations: 191.9 kB / 339 MB, free: 6.469 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2776, allocations: 0 / 339 MB, free: 6.469 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00117/0.2788, allocations: 0.5364 MB / 339.6 MB, free: 5.926 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003852/0.2792, allocations: 0.7784 MB / 340.4 MB, free: 5.086 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.2792, allocations: 8 kB / 340.4 MB, free: 5.078 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.2793, allocations: 4 kB / 340.4 MB, free: 5.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009715/0.2802, allocations: 255.7 kB / 340.6 MB, free: 4.824 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/0.2819, allocations: 1.555 MB / 342.2 MB, free: 3.137 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.2822, allocations: 52.14 kB / 342.2 MB, free: 3.086 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.2823, allocations: 16 kB / 342.2 MB, free: 3.07 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.674e-06/0.2823, allocations: 7.938 kB / 342.2 MB, free: 3.062 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009626/0.2833, allocations: 443.6 kB / 342.7 MB, free: 2.629 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2833, allocations: 7.984 kB / 342.7 MB, free: 2.621 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.18e-06/0.2833, allocations: 4 kB / 342.7 MB, free: 2.617 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/0.2838, allocations: 128 kB / 342.8 MB, free: 2.492 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.2838, allocations: 8 kB / 342.8 MB, free: 2.484 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.2841, allocations: 47.95 kB / 342.9 MB, free: 2.438 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.2842, allocations: 16 kB / 342.9 MB, free: 2.422 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.0002284/0.2844, allocations: 244.9 kB / 343.1 MB, free: 2.172 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.83e-05/0.2845, allocations: 43.52 kB / 343.2 MB, free: 2.129 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.234e-05/0.2846, allocations: 48.23 kB / 343.2 MB, free: 2.082 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2846, allocations: 0 / 343.2 MB, free: 2.082 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2846, allocations: 4 kB / 343.2 MB, free: 2.078 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2846, allocations: 4 kB / 343.2 MB, free: 2.074 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.2863, allocations: 0.965 MB / 344.2 MB, free: 1.043 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.2863, allocations: 0 / 344.2 MB, free: 1.043 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004402/0.2868, allocations: 100 kB / 344.3 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.2868, allocations: 4 kB / 344.3 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.2868, allocations: 11.94 kB / 344.3 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.2868, allocations: 0 / 344.3 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2868, allocations: 4 kB / 344.3 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.2884, allocations: 0.7825 MB / 345.1 MB, free: 92 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.2885, allocations: 140.7 kB / 345.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.727e-05/0.2886, allocations: 8 kB / 345.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/0.2889, allocations: 47.95 kB / 345.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.289, allocations: 19.97 kB / 345.3 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.289, allocations: 8 kB / 345.3 MB, free: 15.85 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.2892, allocations: 255.2 kB / 345.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2893, allocations: 0 / 345.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005217/0.2898, allocations: 136 kB / 345.7 MB, free: 15.47 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.0001202/0.2899, allocations: 103.5 kB / 345.8 MB, free: 15.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.2919, allocations: 0.7929 MB / 346.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2919, allocations: 4 kB / 346.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004781/0.2924, allocations: 208 kB / 346.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005323/0.2929, allocations: 89.44 kB / 346.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.2948, allocations: 1.217 MB / 348.1 MB, free: 13.02 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.2951, allocations: 0.8315 MB / 348.9 MB, free: 12.16 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002573/0.2954, allocations: 59.23 kB / 349 MB, free: 12.11 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.44e-05/0.2955, allocations: 31.44 kB / 349 MB, free: 12.07 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2955, allocations: 0 / 349 MB, free: 12.07 MB / 286.1 MB Notification: Performance of Templates: time 0.008913/0.3044, allocations: 4.113 MB / 353.1 MB, free: 7.961 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: