Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09918/0.09918, allocations: 17.69 MB / 33.64 MB, free: 1.785 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001055/0.001055, allocations: 179.6 kB / 38.91 MB, free: 24 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.4 MB / 249.5 MB, free: 2.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009157/0.0009155, allocations: 97.48 kB / 302.2 MB, free: 4.434 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004306/0.0004307, allocations: 12 kB / 366.9 MB, free: 3.633 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2404, allocations: 51.99 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.00185/0.2423, allocations: 1.655 MB / 420.6 MB, free: 22.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.2434, allocations: 0.7065 MB / 421.3 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.2436, allocations: 7.938 kB / 421.3 MB, free: 22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002977/0.2439, allocations: 39.77 kB / 421.3 MB, free: 21.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.2441, allocations: 43.77 kB / 421.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.2444, allocations: 125 kB / 421.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.2448, allocations: 295.3 kB / 421.8 MB, free: 21.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.245, allocations: 83.08 kB / 421.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.2452, allocations: 111.5 kB / 422 MB, free: 21.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.2454, allocations: 131.4 kB / 422.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/0.2454, allocations: 12 kB / 422.1 MB, free: 21.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.037e-05/0.2455, allocations: 8 kB / 422.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-05/0.2455, allocations: 67.78 kB / 422.2 MB, free: 21.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2457, allocations: 125 kB / 422.3 MB, free: 20.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.2459, allocations: 263 kB / 422.6 MB, free: 20.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2459, allocations: 4 kB / 422.6 MB, free: 20.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2459, allocations: 3.938 kB / 422.6 MB, free: 20.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2459, allocations: 4 kB / 422.6 MB, free: 20.7 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001366/0.2473, allocations: 0.6815 MB / 423.3 MB, free: 19.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2474, allocations: 8.031 kB / 423.3 MB, free: 19.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.162e-05/0.2475, allocations: 36.56 kB / 423.3 MB, free: 19.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000585/0.248, allocations: 351.4 kB / 423.7 MB, free: 19.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.2481, allocations: 12.7 kB / 423.7 MB, free: 19.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.2481, allocations: 24.38 kB / 423.7 MB, free: 19.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/0.2485, allocations: 253.4 kB / 423.9 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.2485, allocations: 0 / 423.9 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.2486, allocations: 8 kB / 423.9 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2486, allocations: 4 kB / 424 MB, free: 19.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.2489, allocations: 200.5 kB / 424.1 MB, free: 19.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.25, allocations: 0.7192 MB / 424.9 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005697/0.2506, allocations: 270.3 kB / 425.1 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001955/0.2508, allocations: 128.7 kB / 425.3 MB, free: 17.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.2508, allocations: 11.98 kB / 425.3 MB, free: 17.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.2511, allocations: 212.8 kB / 425.5 MB, free: 17.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.2511, allocations: 0 / 425.5 MB, free: 17.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.002036/0.2531, allocations: 0.9633 MB / 426.4 MB, free: 16.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.2532, allocations: 144.5 kB / 426.6 MB, free: 16.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005179/0.2537, allocations: 310.5 kB / 426.9 MB, free: 16.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.2538, allocations: 33.7 kB / 426.9 MB, free: 16.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.061e-05/0.2539, allocations: 160.3 kB / 427.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.741e-05/0.2539, allocations: 82.81 kB / 427.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.254, allocations: 0 / 427.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.144e-05/0.2541, allocations: 342.8 kB / 427.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2542, allocations: 104.2 kB / 427.6 MB, free: 15.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.2545, allocations: 142.9 kB / 427.7 MB, free: 15.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.2563, allocations: 0.7646 MB / 428.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2563, allocations: 0 / 428.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009037/0.2572, allocations: 0.5325 MB / 429 MB, free: 13.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/0.2573, allocations: 153.3 kB / 429.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2573, allocations: 0 / 429.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003575/0.2577, allocations: 100.7 kB / 429.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.2579, allocations: 35.91 kB / 429.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.26, allocations: 1.94 MB / 431.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.2603, allocations: 59.8 kB / 431.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.2603, allocations: 8 kB / 431.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.752e-06/0.2603, allocations: 7.938 kB / 431.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005691/0.2609, allocations: 407.9 kB / 431.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.2609, allocations: 4.031 kB / 431.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.2611, allocations: 64.73 kB / 431.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.2612, allocations: 31.98 kB / 431.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.2623, allocations: 1.663 MB / 433.5 MB, free: 9.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003076/0.2627, allocations: 47.83 kB / 433.5 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.2627, allocations: 4 kB / 433.5 MB, free: 9.062 MB / 298.7 MB Warning: Assuming fixed start value for the following 4 variables: Process_a.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.PI_d.xfb,$PRE.PI_d.ulin,$PRE.PI_d.ulino,$PRE.PI_d.u,PI_d.xfb,PI_d.ulin,PI_d.ulino,PI_d.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002496/0.2629, allocations: 285.6 kB / 433.8 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.263, allocations: 27.66 kB / 433.8 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.354e-05/0.2631, allocations: 38.17 kB / 433.9 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2631, allocations: 4 kB / 433.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2631, allocations: 0 / 433.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2631, allocations: 7.984 kB / 433.9 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.2633, allocations: 357.2 kB / 434.2 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2634, allocations: 3.938 kB / 434.2 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.2635, allocations: 19.98 kB / 434.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003913/0.2639, allocations: 203.2 kB / 434.5 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.2639, allocations: 8 kB / 434.5 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001997/0.2659, allocations: 2.487 MB / 437 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.266, allocations: 4.031 kB / 437 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.2672, allocations: 0.695 MB / 437.7 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.22e-05/0.2673, allocations: 104.7 kB / 437.8 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.2673, allocations: 8.062 kB / 437.8 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.2676, allocations: 47.94 kB / 437.8 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.922e-05/0.2677, allocations: 15.97 kB / 437.8 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.2677, allocations: 19.88 kB / 437.8 MB, free: 4.465 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000401/0.2681, allocations: 245.8 kB / 438.1 MB, free: 4.227 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2681, allocations: 0 / 438.1 MB, free: 4.227 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004737/0.2686, allocations: 103.8 kB / 438.2 MB, free: 4.125 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process_a.x_scaled[1],Process_a.x_scaled[2],PI_a.FO.y,Process_d.x_scaled[1],Process_d.x_scaled[2]) * Number of discrete variables: 5 ($whenCondition1,PI_d.xfb,PI_d.ulin,PI_d.ulino,PI_d.u) * Number of discrete states: 5 (PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000143/0.2688, allocations: 111.2 kB / 438.3 MB, free: 4.008 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.27, allocations: 0.9477 MB / 439.2 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.27, allocations: 4.125 kB / 439.2 MB, free: 2.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005326/0.2706, allocations: 381.8 kB / 439.6 MB, free: 2.582 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.2709, allocations: 36.53 kB / 439.7 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009743/0.2719, allocations: 0.6994 MB / 440.4 MB, free: 1.824 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001917/0.2721, allocations: 0.7756 MB / 441.1 MB, free: 1.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.2722, allocations: 70.23 kB / 441.2 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.854e-05/0.2723, allocations: 19.44 kB / 441.2 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of SimCode: time 4.1e-07/0.2723, allocations: 0 / 441.2 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of Templates: time 0.00804/0.2804, allocations: 4.218 MB / 445.4 MB, free: 12.71 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.makefile (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.sim & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe 2>&1)