Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.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_actuation_schemes.DaisyChain,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_DaisyChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.DaisyChain,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_DaisyChain",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.005414/0.005413, allocations: 99.75 kB / 15.73 MB, free: 6.043 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.001239/0.001239, allocations: 192.2 kB / 16.67 MB, free: 5.953 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09111/0.09111, allocations: 22.33 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 55.91 kB / 436.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1033, allocations: 54.96 MB / 491.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.DaisyChain): time 0.002946/0.1063, allocations: 1.787 MB / 493.3 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.1074, allocations: 0.5845 MB / 493.9 MB, free: 2.891 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.1076, allocations: 4 kB / 493.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003552/0.108, allocations: 39.7 kB / 493.9 MB, free: 2.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002413/0.1082, allocations: 59.62 kB / 494 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002869/0.1085, allocations: 99.84 kB / 494.1 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003958/0.1089, allocations: 259.5 kB / 494.3 MB, free: 2.438 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.1091, allocations: 45.67 kB / 494.4 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.1093, allocations: 103.6 kB / 494.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.1096, allocations: 123.5 kB / 494.6 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.799e-05/0.1097, allocations: 12 kB / 494.6 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.865e-05/0.1097, allocations: 16 kB / 494.6 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.1098, allocations: 71.73 kB / 494.7 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.11, allocations: 79.47 kB / 494.8 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.1102, allocations: 183.2 kB / 494.9 MB, free: 1.812 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1102, allocations: 0 / 494.9 MB, free: 1.812 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1102, allocations: 4 kB / 494.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1103, allocations: 7.938 kB / 494.9 MB, free: 1.801 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001395/0.1117, allocations: 0.5727 MB / 495.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1117, allocations: 12.03 kB / 495.5 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.319e-05/0.1118, allocations: 46.73 kB / 495.6 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.1118, allocations: 20.8 kB / 495.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000628/0.1125, allocations: 319.6 kB / 495.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.34e-05/0.1125, allocations: 8.609 kB / 495.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.1126, allocations: 12.38 kB / 495.9 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.1129, allocations: 147.6 kB / 496.1 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.1129, allocations: 0 / 496.1 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.1129, allocations: 4 kB / 496.1 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1129, allocations: 7.938 kB / 496.1 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002709/0.1132, allocations: 142.6 kB / 496.2 MB, free: 432 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00093/0.1141, allocations: 0.5364 MB / 496.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004759/0.1146, allocations: 194.4 kB / 497 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.1148, allocations: 88.81 kB / 497 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.1148, allocations: 0 / 497 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.1149, allocations: 38.56 kB / 497.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.1149, allocations: 4 kB / 497.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005722/0.1155, allocations: 264.5 kB / 497.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.1155, allocations: 55.41 kB / 497.4 MB, free: 15.17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.1161, allocations: 270.9 kB / 497.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.1161, allocations: 25.7 kB / 497.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.217e-05/0.1162, allocations: 132 kB / 497.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.788e-05/0.1163, allocations: 59.44 kB / 497.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.985e-05/0.1164, allocations: 41.7 kB / 497.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1165, allocations: 330.8 kB / 498.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1166, allocations: 63.97 kB / 498.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.1168, allocations: 62.95 kB / 498.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.1187, allocations: 468.2 kB / 498.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1187, allocations: 3.984 kB / 498.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003917/0.1191, allocations: 238.9 kB / 499.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1192, allocations: 4 kB / 499.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1192, allocations: 0 / 499.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1192, allocations: 0 / 499.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.1194, allocations: 43.91 kB / 499.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.1194, allocations: 3.984 kB / 499.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.1197, allocations: 35.91 kB / 499.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.1197, allocations: 7.984 kB / 499.1 MB, free: 13.37 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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 (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 prepare postOptimizeDAE: time 0.0002146/0.1199, allocations: 155.7 kB / 499.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.982e-05/0.12, allocations: 15.91 kB / 499.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004819/0.1205, allocations: 249.3 kB / 499.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1205, allocations: 4 kB / 499.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1205, allocations: 0 / 499.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1205, allocations: 3.984 kB / 499.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.1209, allocations: 289.4 kB / 499.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1209, allocations: 0 / 499.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/0.1212, allocations: 35.97 kB / 499.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1212, allocations: 4 kB / 499.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.1212, allocations: 4 kB / 499.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1212, allocations: 4 kB / 499.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1212, allocations: 3.938 kB / 499.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006148/0.1218, allocations: 407 kB / 0.4886 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.8e-05/0.1219, allocations: 105 kB / 0.4887 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.122, allocations: 0 / 0.4887 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.1223, allocations: 36.08 kB / 0.4887 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.1223, allocations: 11.98 kB / 0.4887 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.1224, allocations: 4 kB / 0.4887 GB, free: 11.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004531/0.1228, allocations: 207.1 kB / 0.4889 GB, free: 11.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1228, allocations: 0 / 0.4889 GB, free: 11.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.1231, allocations: 43.95 kB / 0.489 GB, free: 11.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y) * 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 (18): * Single equations (assignments): 18 * 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.0009479/0.1241, allocations: 0.9364 MB / 0.4899 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003621/0.1245, allocations: 167.9 kB / 0.49 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/0.1245, allocations: 8 kB / 0.49 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.1247, allocations: 87.89 kB / 0.4901 GB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/0.125, allocations: 38.31 kB / 0.4902 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00399/0.129, allocations: 2.509 MB / 0.4926 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.1294, allocations: 0.7514 MB / 0.4933 GB, free: 7.109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001417/0.1295, allocations: 49.5 kB / 0.4934 GB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.1297, allocations: 59.42 kB / 0.4934 GB, free: 7.004 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1297, allocations: 0 / 0.4934 GB, free: 7.004 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.152, allocations: 4.159 MB / 0.4975 GB, free: 2.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.443/7.595, allocations: 10.47 kB / 0.4975 GB, free: 2.914 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.DaisyChain_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 AES_AES_Coursework_Typical_actuation_schemes_DaisyChain.fmu > AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe 2>&1)