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.001619/0.001619, allocations: 108.8 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.001827/0.001827, allocations: 191 kB / 18 MB, free: 5.109 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.692/1.692, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001343/0.001343, allocations: 47.94 kB / 327.9 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1301, 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.004899/0.135, allocations: 3.125 MB / 377.6 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002198/0.1373, allocations: 1.01 MB / 378.6 MB, free: 436 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000255/0.1375, allocations: 11.94 kB / 378.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004115/0.138, allocations: 91.17 kB / 378.7 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002358/0.1382, allocations: 103.1 kB / 378.8 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005708/0.1388, allocations: 227.6 kB / 379 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001642/0.4576, allocations: 0.5178 MB / 379.5 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004303/0.4581, allocations: 174.8 kB / 379.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003152/0.4584, allocations: 200.6 kB / 379.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003099/0.4587, allocations: 206.6 kB / 380.1 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.016e-05/0.4588, allocations: 41.25 kB / 380.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.308e-05/0.4589, allocations: 40.47 kB / 380.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.4591, allocations: 104.9 kB / 380.3 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002393/0.4594, allocations: 219.8 kB / 380.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009365/0.4603, allocations: 0.4909 MB / 381 MB, free: 9.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.4603, allocations: 0 / 381 MB, free: 9.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4603, allocations: 0 / 381 MB, free: 9.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.4603, allocations: 1.031 kB / 381 MB, free: 9.512 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.001926/0.4623, allocations: 0.7697 MB / 381.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.4623, allocations: 9 kB / 381.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.4625, allocations: 58.88 kB / 381.8 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000989/0.4635, allocations: 379.6 kB / 382.2 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.517e-05/0.4636, allocations: 26.03 kB / 382.2 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.4638, allocations: 41.59 kB / 382.3 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.4651, allocations: 446.6 kB / 382.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.184e-05/0.4651, allocations: 14.16 kB / 382.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.474e-05/0.4652, allocations: 14.06 kB / 382.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.4652, allocations: 9.156 kB / 382.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.4666, allocations: 377.7 kB / 383.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002693/0.4693, allocations: 1.564 MB / 384.7 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009677/0.4702, allocations: 310.7 kB / 385 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005026/0.4708, allocations: 164.6 kB / 385.1 MB, free: 7.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.4708, allocations: 13.34 kB / 385.2 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.4709, allocations: 36.64 kB / 385.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.895e-06/0.4709, allocations: 1.094 kB / 385.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003923/0.4748, allocations: 1.387 MB / 386.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.4749, allocations: 80.64 kB / 386.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006042/0.4755, allocations: 366.1 kB / 387 MB, free: 6.492 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.4755, allocations: 30.92 kB / 387 MB, free: 6.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.4758, allocations: 242.8 kB / 387.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.4759, allocations: 118.3 kB / 387.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.476, allocations: 80.08 kB / 387.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.4762, allocations: 348.8 kB / 387.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006004/0.4768, allocations: 176.3 kB / 388 MB, free: 5.734 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000657/0.4775, allocations: 248.9 kB / 388.2 MB, free: 5.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.4786, allocations: 396 kB / 388.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4786, allocations: 3.938 kB / 388.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001461/0.48, allocations: 493.8 kB / 389.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.4801, allocations: 6.844 kB / 389.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.4801, allocations: 2.25 kB / 389.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.292e-05/0.4802, allocations: 7.781 kB / 389.1 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4812, allocations: 212.5 kB / 389.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/0.4835, allocations: 1.57 MB / 390.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005368/0.4841, allocations: 42.62 kB / 390.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.4841, allocations: 15.67 kB / 391 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007895/0.4849, allocations: 278.5 kB / 391.2 MB, free: 3.586 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005427/0.4855, allocations: 243.4 kB / 391.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008367/0.4863, allocations: 370.8 kB / 391.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.264e-06/0.4864, allocations: 0 / 391.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001225/0.4876, allocations: 468.1 kB / 392.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.4876, allocations: 6.75 kB / 392.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.4876, allocations: 3.062 kB / 392.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.4876, allocations: 5.75 kB / 392.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/0.4882, allocations: 119 kB / 392.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.4882, allocations: 8.578 kB / 392.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003519/0.4886, allocations: 40.09 kB / 392.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.4886, allocations: 19.92 kB / 392.5 MB, free: 3.074 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.0001904/0.4888, allocations: 197.4 kB / 392.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.144e-05/0.4889, allocations: 37.56 kB / 392.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.4891, allocations: 48.03 kB / 392.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.4891, allocations: 8.031 kB / 392.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.4891, allocations: 0 / 392.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4891, allocations: 3.469 kB / 392.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.491, allocations: 0.9241 MB / 393.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.4911, allocations: 1.156 kB / 393.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.4915, allocations: 82.12 kB / 393.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.4916, allocations: 2.938 kB / 393.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.4916, allocations: 12.8 kB / 393.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.4916, allocations: 2.156 kB / 393.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.4916, allocations: 5.125 kB / 393.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.4933, allocations: 0.6651 MB / 394.5 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.4935, allocations: 140.2 kB / 394.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/0.4935, allocations: 9.125 kB / 394.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.4938, allocations: 36.16 kB / 394.6 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.4939, allocations: 27.89 kB / 394.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.494, allocations: 7.297 kB / 394.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003264/0.4943, allocations: 250.4 kB / 394.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4943, allocations: 0.9062 kB / 394.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006552/0.495, allocations: 136 kB / 395.1 MB, free: 1.652 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.0001494/0.4951, allocations: 118.9 kB / 395.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.4975, allocations: 0.6927 MB / 395.9 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4976, allocations: 0 / 395.9 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005216/0.4981, allocations: 178.8 kB / 396 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007306/0.4988, allocations: 104.6 kB / 396.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.5009, allocations: 1.011 MB / 397.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.5013, allocations: 0.8217 MB / 398 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002955/0.5016, allocations: 60.09 kB / 398 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.5017, allocations: 35.38 kB / 398.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5018, allocations: 0 / 398.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of Templates: time 0.01239/0.5141, allocations: 4.731 MB / 402.8 MB, free: 14.56 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)