Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001522/0.001522, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2415/0.2415, allocations: 22.34 MB / 313.3 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003454, allocations: 11.94 kB / 381.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3519, allocations: 55.97 MB / 437.8 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.001889/0.3539, allocations: 1.631 MB / 439.4 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.3549, allocations: 0.6727 MB / 440.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.3551, allocations: 6.281 kB / 440.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.3554, allocations: 73.95 kB / 440.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.3557, allocations: 90.47 kB / 440.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.356, allocations: 144.4 kB / 440.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002875/0.3563, allocations: 272.3 kB / 440.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.3564, allocations: 61.19 kB / 440.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002587/0.3567, allocations: 213.2 kB / 440.9 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.3569, allocations: 176.8 kB / 441.1 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.462e-05/0.357, allocations: 9.625 kB / 441.1 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.126e-05/0.357, allocations: 10.75 kB / 441.1 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.491e-05/0.3571, allocations: 81.02 kB / 441.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.823e-05/0.3572, allocations: 60.86 kB / 441.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.3574, allocations: 196 kB / 441.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.3574, allocations: 0 / 441.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3574, allocations: 4 kB / 441.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.3574, allocations: 2.531 kB / 441.5 MB, free: 37.2 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.00169/0.3591, allocations: 0.7414 MB / 442.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.3591, allocations: 10.28 kB / 442.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.165e-05/0.3592, allocations: 34.16 kB / 442.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009484/0.3602, allocations: 435.1 kB / 442.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.3602, allocations: 17.88 kB / 442.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.813e-05/0.3602, allocations: 18.97 kB / 442.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.3606, allocations: 176.5 kB / 442.9 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.3606, allocations: 3.984 kB / 442.9 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.3606, allocations: 7.953 kB / 442.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3606, allocations: 5.156 kB / 442.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003103/0.361, allocations: 187.5 kB / 443.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000966/0.3619, allocations: 0.6447 MB / 443.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007379/0.3627, allocations: 344.2 kB / 444.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.3627, allocations: 192 / 444.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.3627, allocations: 37.62 kB / 444.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 9.82e-07/0.3628, allocations: 4 kB / 444.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00126/0.364, allocations: 0.4963 MB / 444.6 MB, free: 35.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3641, allocations: 66.47 kB / 444.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.3651, allocations: 458.9 kB / 445.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.3652, allocations: 28.64 kB / 445.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3653, allocations: 162.2 kB / 445.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.064e-05/0.3654, allocations: 84.97 kB / 445.4 MB, free: 35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.084e-05/0.3654, allocations: 4 kB / 445.4 MB, free: 35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3655, allocations: 341.8 kB / 445.7 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.3657, allocations: 80.38 kB / 445.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.3658, allocations: 110 kB / 445.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.366, allocations: 112.4 kB / 446 MB, free: 34.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.366, allocations: 0 / 446 MB, free: 34.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005641/0.3666, allocations: 339.4 kB / 446.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3666, allocations: 4.75 kB / 446.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.3666, allocations: 0 / 446.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002483/0.3669, allocations: 57.5 kB / 446.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.3671, allocations: 38.05 kB / 446.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.3682, allocations: 1.507 MB / 448 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004014/0.3687, allocations: 74.3 kB / 448 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.3687, allocations: 7.812 kB / 448 MB, free: 32.96 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001865/0.3689, allocations: 160.8 kB / 448.2 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.262e-05/0.3689, allocations: 37.7 kB / 448.2 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.27e-05/0.369, allocations: 39.17 kB / 448.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.369, allocations: 2.844 kB / 448.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.369, allocations: 4 kB / 448.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.369, allocations: 3.938 kB / 448.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003124/0.3694, allocations: 349.6 kB / 448.6 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3694, allocations: 3.938 kB / 448.6 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.3695, allocations: 28.86 kB / 448.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001368/0.3697, allocations: 45.66 kB / 448.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.3697, allocations: 10.34 kB / 448.7 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008982/0.3706, allocations: 1.51 MB / 450.2 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3706, allocations: 0 / 450.2 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006284/0.3713, allocations: 0.5151 MB / 450.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.778e-05/0.3714, allocations: 113.4 kB / 450.9 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/0.3714, allocations: 6.562 kB / 450.9 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003954/0.3718, allocations: 62.7 kB / 450.9 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.3719, allocations: 24.94 kB / 450.9 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.3719, allocations: 3.844 kB / 450.9 MB, free: 30.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007575/0.3727, allocations: 367.1 kB / 451.3 MB, free: 30.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3727, allocations: 0 / 451.3 MB, free: 30.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.373, allocations: 54.88 kB / 451.4 MB, free: 30.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001083/0.3731, allocations: 108.9 kB / 451.5 MB, free: 30.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000575/0.3737, allocations: 348.8 kB / 451.8 MB, free: 30.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3737, allocations: 0 / 451.8 MB, free: 30.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.374, allocations: 244.7 kB / 452 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.3743, allocations: 43.72 kB / 452.1 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.3754, allocations: 0.7009 MB / 452.8 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.3757, allocations: 0.803 MB / 453.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001332/0.3758, allocations: 56.38 kB / 453.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.059e-05/0.3759, allocations: 24.56 kB / 453.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3759, allocations: 0 / 453.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of Templates: time 0.006255/0.3821, allocations: 2.762 MB / 456.4 MB, free: 28.76 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1) Environment - environmentSimulation: