Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Smith_predictor.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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009079/0.0009081, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001092/0.001092, allocations: 172.7 kB / 15.95 MB, free: 208 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.36/1.36, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2153/0.2153, allocations: 22.35 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.0003712, allocations: 8 kB / 382 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3547, allocations: 55.97 MB / 438 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.0015/0.3562, allocations: 1.485 MB / 439.5 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008192/0.3571, allocations: 0.5735 MB / 440.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.28e-05/0.3572, allocations: 6.656 kB / 440.1 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.3574, allocations: 41.44 kB / 440.1 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.3576, allocations: 55.73 kB / 440.2 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.3578, allocations: 111.5 kB / 440.3 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.3581, allocations: 260.8 kB / 440.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.3582, allocations: 42.11 kB / 440.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3583, allocations: 128.9 kB / 440.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.3585, allocations: 160.1 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.233e-05/0.3586, allocations: 8.344 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.695e-05/0.3586, allocations: 8.844 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.942e-05/0.3587, allocations: 78.7 kB / 441 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.808e-05/0.3587, allocations: 54.45 kB / 441 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.3589, allocations: 168.2 kB / 441.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3589, allocations: 0 / 441.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3589, allocations: 4 kB / 441.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.3589, allocations: 2.781 kB / 441.2 MB, free: 37.48 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001286/0.3602, allocations: 0.6504 MB / 441.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3603, allocations: 18.86 kB / 441.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.986e-05/0.3603, allocations: 41.44 kB / 441.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.3604, allocations: 32.62 kB / 441.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006375/0.361, allocations: 359 kB / 442.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.361, allocations: 13.75 kB / 442.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.3611, allocations: 13.06 kB / 442.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.3613, allocations: 181.2 kB / 442.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3614, allocations: 3.953 kB / 442.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.3614, allocations: 6.719 kB / 442.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.3614, allocations: 6.766 kB / 442.5 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.3617, allocations: 171.5 kB / 442.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000933/0.3626, allocations: 0.6572 MB / 443.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.3629, allocations: 212.5 kB / 443.5 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.3631, allocations: 118.5 kB / 443.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.3631, allocations: 7.047 kB / 443.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.554e-05/0.3632, allocations: 37.53 kB / 443.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.3632, allocations: 0 / 443.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001231/0.3644, allocations: 0.5884 MB / 444.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.3644, allocations: 57.48 kB / 444.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005789/0.365, allocations: 346.3 kB / 444.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.365, allocations: 25.7 kB / 444.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.657e-05/0.3651, allocations: 141.4 kB / 444.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.723e-05/0.3652, allocations: 80.2 kB / 444.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.077e-05/0.3652, allocations: 0 / 444.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.064e-05/0.3653, allocations: 341.5 kB / 445.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.3654, allocations: 90.44 kB / 445.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3656, allocations: 94.14 kB / 445.4 MB, free: 34.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.3657, allocations: 112.3 kB / 445.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3657, allocations: 0 / 445.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000636/0.3664, allocations: 414.8 kB / 445.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3664, allocations: 6.094 kB / 445.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3664, allocations: 0 / 445.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003143/0.3667, allocations: 106.9 kB / 446 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.3669, allocations: 29.05 kB / 446.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.3684, allocations: 1.91 MB / 448 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.3687, allocations: 56.31 kB / 448 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.3688, allocations: 18.06 kB / 448.1 MB, free: 33.04 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: K.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Mr.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Pr.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Pr.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Mr.x_scaled[1]: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: 1 * 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 (20): * Single equations (assignments): 19 * 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%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.369, allocations: 161.2 kB / 448.2 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.369, allocations: 35.52 kB / 448.2 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.265e-05/0.3691, allocations: 35.89 kB / 448.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3691, allocations: 3 kB / 448.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.3691, allocations: 3.031 kB / 448.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3691, allocations: 0 / 448.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003066/0.3694, allocations: 335.8 kB / 448.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3695, allocations: 3.375 kB / 448.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.3696, allocations: 29.48 kB / 448.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001864/0.3698, allocations: 80.22 kB / 448.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.3699, allocations: 11 kB / 448.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.371, allocations: 1.674 MB / 450.4 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.371, allocations: 4 kB / 450.4 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007001/0.3717, allocations: 0.5399 MB / 451 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.3717, allocations: 109.2 kB / 451.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.3718, allocations: 12.05 kB / 451.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.3721, allocations: 40.08 kB / 451.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.3722, allocations: 24.95 kB / 451.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.3722, allocations: 2.406 kB / 451.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004953/0.3727, allocations: 275.4 kB / 451.4 MB, free: 30.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3727, allocations: 0 / 451.4 MB, free: 30.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004071/0.3731, allocations: 62.28 kB / 451.5 MB, free: 30.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pr.x_scaled[1],Pr.x_scaled[2],Mr.x_scaled[1],Mr.x_scaled[2],K.x_scaled[1],K.x_scaled[2]) * 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.0008798/0.374, allocations: 1.082 MB / 452.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006012/0.3746, allocations: 386.6 kB / 452.9 MB, free: 29.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3746, allocations: 0 / 452.9 MB, free: 29.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003312/0.375, allocations: 255.1 kB / 453.2 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.3753, allocations: 36 kB / 453.2 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.3787, allocations: 2.074 MB / 455.3 MB, free: 28.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.3789, allocations: 0.7753 MB / 456.1 MB, free: 27.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.379, allocations: 58.28 kB / 456.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.3791, allocations: 79.97 kB / 456.2 MB, free: 27.65 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3791, allocations: 0 / 456.2 MB, free: 27.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.3949, allocations: 5.309 MB / 461.5 MB, free: 27.3 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001243/0.3951, allocations: 198.7 kB / 461.7 MB, free: 27.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/2.256, allocations: 0 / 461.7 MB, free: 27.06 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Smith_predictor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Smith_predictor_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Smith_predictor.fmu > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1) Environment - environmentSimulation: