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.0007563/0.0007562, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005051/0.00505, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.321/1.321, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004297/0.0004297, allocations: 8 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2131, allocations: 47.59 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002876/0.216, allocations: 2.772 MB / 329.8 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.2176, allocations: 0.9793 MB / 330.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.2178, allocations: 12.53 kB / 330.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003183/0.2181, allocations: 68.22 kB / 330.9 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.2184, allocations: 87.66 kB / 330.9 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.2189, allocations: 199.3 kB / 331.1 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.2194, allocations: 0.4989 MB / 331.6 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003049/0.2197, allocations: 156 kB / 331.8 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.2199, allocations: 159.8 kB / 331.9 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.2202, allocations: 176.4 kB / 332.1 MB, free: 13.51 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.2202, allocations: 15.03 kB / 332.1 MB, free: 13.51 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.012e-05/0.2203, allocations: 15.97 kB / 332.1 MB, free: 13.51 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.686e-05/0.2204, allocations: 76.03 kB / 332.2 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.2206, allocations: 215.2 kB / 332.4 MB, free: 13.28 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003991/0.221, allocations: 446.2 kB / 332.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.221, allocations: 1.312 kB / 332.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.221, allocations: 0 / 332.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.221, allocations: 0 / 332.9 MB, free: 12.95 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.00123/0.2222, allocations: 0.7114 MB / 333.6 MB, free: 12.35 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.2223, allocations: 9.094 kB / 333.6 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.2224, allocations: 53.86 kB / 333.6 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004946/0.2229, allocations: 361.4 kB / 334 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.2229, allocations: 31.94 kB / 334 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-05/0.223, allocations: 40.66 kB / 334.1 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009988/0.224, allocations: 484.7 kB / 334.5 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.2241, allocations: 1.469 kB / 334.5 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.006e-05/0.2241, allocations: 12.34 kB / 334.5 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.2241, allocations: 8.781 kB / 334.6 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.2252, allocations: 427.3 kB / 335 MB, free: 11.28 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/0.2274, allocations: 1.579 MB / 336.6 MB, free: 9.609 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008379/0.2282, allocations: 346.6 kB / 336.9 MB, free: 9.262 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004447/0.2287, allocations: 184.8 kB / 337.1 MB, free: 9.078 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.2287, allocations: 7.938 kB / 337.1 MB, free: 9.07 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.2288, allocations: 38.56 kB / 337.1 MB, free: 9.023 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.2288, allocations: 0 / 337.1 MB, free: 9.023 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003305/0.2321, allocations: 1.525 MB / 338.6 MB, free: 7.406 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.2322, allocations: 81.11 kB / 338.7 MB, free: 7.309 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.2325, allocations: 357.5 kB / 339.1 MB, free: 6.949 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.2326, allocations: 33.7 kB / 339.1 MB, free: 6.91 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.2327, allocations: 244 kB / 339.3 MB, free: 6.668 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.601e-05/0.2328, allocations: 118.3 kB / 339.5 MB, free: 6.551 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.495e-05/0.2329, allocations: 41.7 kB / 339.5 MB, free: 6.504 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.233, allocations: 346.8 kB / 339.8 MB, free: 6.156 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/0.2335, allocations: 196.7 kB / 340 MB, free: 5.965 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004935/0.234, allocations: 268.8 kB / 340.3 MB, free: 5.668 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008978/0.2349, allocations: 439.3 kB / 340.7 MB, free: 5.211 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.2349, allocations: 4 kB / 340.7 MB, free: 5.207 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001118/0.2361, allocations: 0.5326 MB / 341.3 MB, free: 4.668 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.67e-05/0.2362, allocations: 155.9 kB / 341.4 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2362, allocations: 4 kB / 341.4 MB, free: 4.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.2362, allocations: 4 kB / 341.4 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009224/0.2371, allocations: 255.7 kB / 341.7 MB, free: 4.227 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.2388, allocations: 1.544 MB / 343.2 MB, free: 2.551 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.2391, allocations: 44.06 kB / 343.3 MB, free: 2.508 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.2391, allocations: 19.98 kB / 343.3 MB, free: 2.488 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.2392, allocations: 4 kB / 343.3 MB, free: 2.484 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000955/0.2401, allocations: 447.6 kB / 343.7 MB, free: 2.047 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2401, allocations: 4 kB / 343.7 MB, free: 2.043 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.879e-06/0.2401, allocations: 4 kB / 343.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/0.2406, allocations: 128 kB / 343.8 MB, free: 1.914 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.2406, allocations: 4 kB / 343.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.2409, allocations: 51.95 kB / 343.9 MB, free: 1.859 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.2409, allocations: 16 kB / 343.9 MB, free: 1.844 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.0002304/0.2412, allocations: 240.9 kB / 344.2 MB, free: 1.598 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.795e-05/0.2412, allocations: 43.52 kB / 344.2 MB, free: 1.555 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.913e-05/0.2413, allocations: 44.25 kB / 344.2 MB, free: 1.512 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2413, allocations: 4 kB / 344.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.2414, allocations: 0 / 344.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2414, allocations: 4 kB / 344.2 MB, free: 1.504 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.243, allocations: 0.965 MB / 345.2 MB, free: 484 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.243, allocations: 0 / 345.2 MB, free: 484 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004084/0.2434, allocations: 100 kB / 345.3 MB, free: 384 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.2434, allocations: 4 kB / 345.3 MB, free: 380 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.2435, allocations: 11.94 kB / 345.3 MB, free: 368 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.2435, allocations: 0 / 345.3 MB, free: 368 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2435, allocations: 7.938 kB / 345.3 MB, free: 360 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.245, allocations: 0.7454 MB / 346.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.2451, allocations: 132.7 kB / 346.2 MB, free: 15.43 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.2451, allocations: 11.94 kB / 346.2 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.2454, allocations: 47.95 kB / 346.3 MB, free: 15.37 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.2455, allocations: 23.97 kB / 346.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.2456, allocations: 12.12 kB / 346.3 MB, free: 15.33 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.2458, allocations: 247.2 kB / 346.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2458, allocations: 0 / 346.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004962/0.2463, allocations: 140 kB / 346.7 MB, free: 14.96 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.0001157/0.2464, allocations: 111.1 kB / 346.8 MB, free: 14.84 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.2484, allocations: 0.7968 MB / 347.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2484, allocations: 0 / 347.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004581/0.2489, allocations: 204.1 kB / 347.8 MB, free: 13.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007131/0.2496, allocations: 105.4 kB / 347.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.2515, allocations: 1.264 MB / 349.1 MB, free: 12.44 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.2518, allocations: 0.8237 MB / 350 MB, free: 11.59 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000234/0.2521, allocations: 63.23 kB / 350 MB, free: 11.53 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.511e-05/0.2522, allocations: 31.44 kB / 350.1 MB, free: 11.5 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2522, allocations: 0 / 350.1 MB, free: 11.5 MB / 286.1 MB Notification: Performance of Templates: time 0.008049/0.2603, allocations: 4.284 MB / 354.3 MB, free: 7.211 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.makefile (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)