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.0009775/0.0009774, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.001196/0.001196, allocations: 168.7 kB / 15.95 MB, free: 204 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.451/1.451, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004369/0.0004372, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2094, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003521/0.2129, allocations: 2.645 MB / 329.1 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002513/0.2155, allocations: 0.9523 MB / 330.1 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004709/0.216, allocations: 12.91 kB / 330.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004101/0.2164, allocations: 71 kB / 330.1 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003766/0.2168, allocations: 87.89 kB / 330.2 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006246/0.2174, allocations: 171 kB / 330.4 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008266/0.2183, allocations: 471.4 kB / 330.9 MB, free: 14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003566/0.2186, allocations: 124.6 kB / 331 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.219, allocations: 151.5 kB / 331.1 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.2193, allocations: 170.6 kB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.941e-05/0.2194, allocations: 15.19 kB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.124e-05/0.2194, allocations: 15.03 kB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.529e-05/0.2195, allocations: 75.83 kB / 331.4 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.2197, allocations: 95.23 kB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000357/0.22, allocations: 349.9 kB / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.22, allocations: 0 / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.22, allocations: 0 / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.2201, allocations: 1.281 kB / 331.8 MB, free: 13.33 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.001349/0.2214, allocations: 0.7179 MB / 332.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.2215, allocations: 9.031 kB / 332.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.2216, allocations: 48.94 kB / 332.6 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005708/0.2222, allocations: 352.3 kB / 333 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.2222, allocations: 28.34 kB / 333 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.79e-05/0.2223, allocations: 44.06 kB / 333 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009605/0.2233, allocations: 469.3 kB / 333.5 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.738e-05/0.2233, allocations: 5.062 kB / 333.5 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.041e-05/0.2234, allocations: 23.34 kB / 333.5 MB, free: 12.03 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.2234, allocations: 13.14 kB / 333.5 MB, free: 12.03 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2244, allocations: 420.4 kB / 333.9 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.2267, allocations: 1.583 MB / 335.5 MB, free: 10.21 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007623/0.2274, allocations: 338.9 kB / 335.9 MB, free: 9.867 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004027/0.2278, allocations: 196.6 kB / 336 MB, free: 9.672 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.2279, allocations: 4 kB / 336 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.2279, allocations: 34.56 kB / 336.1 MB, free: 9.625 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.483e-06/0.2279, allocations: 0 / 336.1 MB, free: 9.625 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003042/0.231, allocations: 1.506 MB / 337.6 MB, free: 8.027 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.231, allocations: 85.09 kB / 337.7 MB, free: 7.926 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/0.2314, allocations: 361.5 kB / 338 MB, free: 7.562 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.2315, allocations: 29.7 kB / 338.1 MB, free: 7.527 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.2317, allocations: 248 kB / 338.3 MB, free: 7.281 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.255e-05/0.2318, allocations: 122.2 kB / 338.4 MB, free: 7.16 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.897e-05/0.2318, allocations: 4 kB / 338.4 MB, free: 7.156 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2319, allocations: 358.8 kB / 338.8 MB, free: 6.797 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/0.2324, allocations: 184.8 kB / 338.9 MB, free: 6.617 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004861/0.2329, allocations: 268.8 kB / 339.2 MB, free: 6.32 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004478/0.2333, allocations: 199.9 kB / 339.4 MB, free: 6.125 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2334, allocations: 0 / 339.4 MB, free: 6.125 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001028/0.2344, allocations: 0.5286 MB / 339.9 MB, free: 5.59 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.792e-05/0.2345, allocations: 152 kB / 340.1 MB, free: 5.41 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.2345, allocations: 4 kB / 340.1 MB, free: 5.406 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.2345, allocations: 8 kB / 340.1 MB, free: 5.398 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009025/0.2354, allocations: 255.7 kB / 340.3 MB, free: 5.148 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/0.2372, allocations: 1.544 MB / 341.9 MB, free: 3.473 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.2375, allocations: 44.06 kB / 341.9 MB, free: 3.43 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.2375, allocations: 19.98 kB / 341.9 MB, free: 3.41 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.2376, allocations: 4 kB / 342 MB, free: 3.406 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009199/0.2385, allocations: 443.5 kB / 342.4 MB, free: 2.973 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.2385, allocations: 7.953 kB / 342.4 MB, free: 2.965 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.2385, allocations: 4 kB / 342.4 MB, free: 2.961 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004684/0.239, allocations: 128 kB / 342.5 MB, free: 2.836 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.239, allocations: 7.984 kB / 342.5 MB, free: 2.828 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002768/0.2393, allocations: 39.97 kB / 342.6 MB, free: 2.789 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.2393, allocations: 16 kB / 342.6 MB, free: 2.773 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.0002477/0.2396, allocations: 248.9 kB / 342.8 MB, free: 2.52 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.607e-05/0.2397, allocations: 39.53 kB / 342.9 MB, free: 2.48 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.922e-05/0.2398, allocations: 48.2 kB / 342.9 MB, free: 2.434 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.2398, allocations: 4 kB / 342.9 MB, free: 2.43 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.2398, allocations: 0 / 342.9 MB, free: 2.43 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.2398, allocations: 8 kB / 342.9 MB, free: 2.422 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.2415, allocations: 0.965 MB / 343.9 MB, free: 1.391 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2416, allocations: 0 / 343.9 MB, free: 1.391 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.242, allocations: 96 kB / 344 MB, free: 1.297 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.242, allocations: 8 kB / 344 MB, free: 1.289 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.242, allocations: 8 kB / 344 MB, free: 1.281 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.2421, allocations: 0 / 344 MB, free: 1.281 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.2421, allocations: 4 kB / 344 MB, free: 1.277 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.2435, allocations: 0.7485 MB / 344.8 MB, free: 0.5 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.2436, allocations: 128.7 kB / 344.9 MB, free: 364 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.2437, allocations: 8 kB / 344.9 MB, free: 356 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.244, allocations: 47.89 kB / 344.9 MB, free: 308 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.2441, allocations: 27.97 kB / 345 MB, free: 280 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.2441, allocations: 15.94 kB / 345 MB, free: 264 kB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002722/0.2444, allocations: 247.2 kB / 345.2 MB, free: 20 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2444, allocations: 0 / 345.2 MB, free: 20 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005909/0.245, allocations: 136 kB / 345.4 MB, free: 15.88 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.0001241/0.2451, allocations: 103.5 kB / 345.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001851/0.247, allocations: 0.8047 MB / 346.3 MB, free: 14.97 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.247, allocations: 0 / 346.3 MB, free: 14.97 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004384/0.2474, allocations: 212.1 kB / 346.5 MB, free: 14.77 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.2481, allocations: 85.45 kB / 346.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.2501, allocations: 1.221 MB / 347.8 MB, free: 13.42 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.2505, allocations: 0.8198 MB / 348.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002813/0.2508, allocations: 63.23 kB / 348.6 MB, free: 12.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.937e-05/0.2509, allocations: 27.44 kB / 348.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2509, allocations: 3.938 kB / 348.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of Templates: time 0.008752/0.2597, allocations: 4.109 MB / 352.8 MB, free: 8.375 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)