Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(AES.Coursework.Typical_control_structures.FF_compensation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation") translateModel(AES.Coursework.Typical_control_structures.FF_compensation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001356/0.001356, allocations: 194.5 kB / 16.14 MB, free: 6.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2119/0.2119, allocations: 22.36 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 63.91 kB / 380.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2707, allocations: 54.95 MB / 435 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002614/0.2733, allocations: 1.962 MB / 437 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007992/0.2742, allocations: 0.5827 MB / 437.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.068e-05/0.2743, allocations: 0 / 437.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.2746, allocations: 40.5 kB / 437.6 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.2747, allocations: 45.02 kB / 437.7 MB, free: 37.74 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.2749, allocations: 100.6 kB / 437.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002395/0.2752, allocations: 298.1 kB / 438.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.2753, allocations: 54.86 kB / 438.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2754, allocations: 105.1 kB / 438.2 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.2756, allocations: 130.5 kB / 438.3 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.2756, allocations: 11.53 kB / 438.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.878e-05/0.2756, allocations: 11.06 kB / 438.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.262e-05/0.2757, allocations: 50.73 kB / 438.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.06e-05/0.2758, allocations: 90.89 kB / 438.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.2759, allocations: 182.2 kB / 438.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.276, allocations: 0 / 438.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.276, allocations: 0 / 438.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.276, allocations: 0 / 438.7 MB, free: 37.29 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001132/0.2771, allocations: 0.5919 MB / 439.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.2771, allocations: 18.09 kB / 439.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.124e-05/0.2772, allocations: 27.16 kB / 439.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004722/0.2777, allocations: 316.7 kB / 439.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.2777, allocations: 10.25 kB / 439.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.2778, allocations: 15.75 kB / 439.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.2781, allocations: 204.9 kB / 439.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2781, allocations: 3.938 kB / 439.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.2781, allocations: 6.719 kB / 439.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.2781, allocations: 5.594 kB / 439.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/0.2784, allocations: 154.2 kB / 440 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008547/0.2793, allocations: 0.7342 MB / 440.8 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.2797, allocations: 228.2 kB / 441 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.2799, allocations: 85.28 kB / 441.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.2799, allocations: 0 / 441.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.337e-05/0.2799, allocations: 38.47 kB / 441.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.072e-06/0.2799, allocations: 4 kB / 441.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004752/0.2804, allocations: 269.5 kB / 441.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.845e-05/0.2804, allocations: 51.41 kB / 441.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.2808, allocations: 292.4 kB / 441.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.2809, allocations: 29.7 kB / 441.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.795e-05/0.2809, allocations: 146 kB / 441.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/0.281, allocations: 74.31 kB / 441.9 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.416e-05/0.2811, allocations: 59.98 kB / 442 MB, free: 35.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.977e-05/0.2811, allocations: 336 kB / 442.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.2813, allocations: 68.45 kB / 442.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.2814, allocations: 127.4 kB / 442.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.2826, allocations: 454 kB / 443 MB, free: 34.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2826, allocations: 0 / 443 MB, free: 34.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003785/0.283, allocations: 284.1 kB / 443.2 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2831, allocations: 6.812 kB / 443.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2831, allocations: 2.719 kB / 443.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2831, allocations: 14.16 kB / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.2833, allocations: 55.98 kB / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2834, allocations: 6.5 kB / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.2836, allocations: 51.28 kB / 443.4 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.2836, allocations: 12.91 kB / 443.4 MB, free: 34.29 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: M.y:VARIABLE(flow=false start = M.y_start fixed = true ) "Connector of Real output signal" type: Real PI.xfb:VARIABLE(fixed = true ) type: Real P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (PI.LOsat,PI.HIsat,PI.iNoDec,PI.iNoInc,PI.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 prepare postOptimizeDAE: time 0.0001419/0.2838, allocations: 150.9 kB / 443.5 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.383e-05/0.2838, allocations: 24.44 kB / 443.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003725/0.2842, allocations: 234.6 kB / 443.8 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2842, allocations: 2.906 kB / 443.8 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.2842, allocations: 3.938 kB / 443.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2842, allocations: 0 / 443.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.2845, allocations: 298.2 kB / 444.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2845, allocations: 0 / 444.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.2848, allocations: 52.98 kB / 444.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2848, allocations: 6.875 kB / 444.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.2848, allocations: 0 / 444.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.2848, allocations: 2.844 kB / 444.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2848, allocations: 0 / 444.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.2853, allocations: 407.7 kB / 444.6 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.419e-05/0.2853, allocations: 105.6 kB / 444.7 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.2854, allocations: 11.84 kB / 444.7 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.2857, allocations: 31.66 kB / 444.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/0.2857, allocations: 9.234 kB / 444.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.2857, allocations: 8.641 kB / 444.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003509/0.2861, allocations: 221.9 kB / 444.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2861, allocations: 0 / 444.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000276/0.2864, allocations: 46.12 kB / 445 MB, free: 33.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (M.y,C.x_scaled[1],P.x_scaled[1],PI.xfb,PI.xBias,PI.u,PI.csfil) * Number of discrete variables: 2 (PI.HIsat,PI.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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 8.331e-05/0.2865, allocations: 98.09 kB / 445.1 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003326/0.2868, allocations: 195.9 kB / 445.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2868, allocations: 384 / 445.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.287, allocations: 95.52 kB / 445.4 MB, free: 33.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.2873, allocations: 30.95 kB / 445.4 MB, free: 33.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008044/0.2881, allocations: 0.5859 MB / 446 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.2883, allocations: 0.7607 MB / 446.7 MB, free: 32.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001235/0.2884, allocations: 44.83 kB / 446.8 MB, free: 32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.613e-05/0.2885, allocations: 21.47 kB / 446.8 MB, free: 31.99 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2885, allocations: 0 / 446.8 MB, free: 31.99 MB / 350.1 MB Notification: Performance of Templates: time 0.004321/0.2928, allocations: 1.95 MB / 448.8 MB, free: 31.84 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation.makefile (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1)