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.001137/0.001137, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001112/0.001112, allocations: 193.8 kB / 16.14 MB, free: 6.711 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.168/1.168, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1658/0.1658, allocations: 22.35 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.91 kB / 380.2 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1996, allocations: 54.94 MB / 435.1 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.DaisyChain): time 0.00232/0.202, allocations: 1.847 MB / 437 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008076/0.2028, allocations: 0.5802 MB / 437.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.203, allocations: 0 / 437.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002617/0.2032, allocations: 36.34 kB / 437.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.2034, allocations: 50.05 kB / 437.7 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.2036, allocations: 85.23 kB / 437.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.2039, allocations: 258 kB / 438 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.204, allocations: 38.69 kB / 438 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.2041, allocations: 93.64 kB / 438.1 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.2043, allocations: 121.7 kB / 438.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.2043, allocations: 9.312 kB / 438.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.66e-05/0.2043, allocations: 8.719 kB / 438.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.2044, allocations: 68.69 kB / 438.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.14e-05/0.2045, allocations: 74.8 kB / 438.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.2046, allocations: 171.5 kB / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2046, allocations: 2.938 kB / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.2046, allocations: 0 / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2046, allocations: 0 / 438.6 MB, free: 37.31 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.00102/0.2057, allocations: 0.5748 MB / 439.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.2057, allocations: 14.22 kB / 439.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.693e-05/0.2057, allocations: 49.08 kB / 439.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.373e-05/0.2058, allocations: 21.09 kB / 439.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.2063, allocations: 308.9 kB / 439.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.2063, allocations: 13.8 kB / 439.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.2063, allocations: 15.78 kB / 439.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.2065, allocations: 150.2 kB / 439.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2066, allocations: 2.719 kB / 439.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.2066, allocations: 4 kB / 439.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2066, allocations: 3.438 kB / 439.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.2068, allocations: 134.5 kB / 439.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006706/0.2075, allocations: 0.5458 MB / 440.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.2079, allocations: 190.8 kB / 440.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.208, allocations: 88.64 kB / 440.7 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.208, allocations: 6.703 kB / 440.7 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.402e-05/0.208, allocations: 38.56 kB / 440.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.213e-06/0.2081, allocations: 2.844 kB / 440.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004223/0.2085, allocations: 256.5 kB / 441 MB, free: 35.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.004e-05/0.2085, allocations: 58.03 kB / 441 MB, free: 35.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.2089, allocations: 259.4 kB / 441.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.2089, allocations: 36.61 kB / 441.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.291e-05/0.209, allocations: 127.8 kB / 441.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.009e-05/0.209, allocations: 60.52 kB / 441.5 MB, free: 35.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.052e-05/0.2091, allocations: 37.72 kB / 441.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.92e-05/0.2091, allocations: 328.6 kB / 441.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.2093, allocations: 60.59 kB / 441.9 MB, free: 35.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.227e-05/0.2094, allocations: 66.38 kB / 442 MB, free: 35.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.2108, allocations: 468.1 kB / 442.4 MB, free: 34.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2108, allocations: 0 / 442.4 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002968/0.2111, allocations: 237.8 kB / 442.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.2112, allocations: 5.156 kB / 442.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.2112, allocations: 0 / 442.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.2112, allocations: 7.938 kB / 442.7 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.2114, allocations: 41.31 kB / 442.7 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.2114, allocations: 0 / 442.7 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.2116, allocations: 38.72 kB / 442.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.2116, allocations: 2.812 kB / 442.8 MB, free: 34.77 MB / 350.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.0001417/0.2118, allocations: 158.4 kB / 442.9 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.2118, allocations: 16.19 kB / 442.9 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003683/0.2122, allocations: 246.7 kB / 443.2 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2122, allocations: 7.938 kB / 443.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.2122, allocations: 2.438 kB / 443.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2122, allocations: 0 / 443.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.2125, allocations: 291.2 kB / 443.5 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2125, allocations: 3.938 kB / 443.5 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/0.2127, allocations: 32.92 kB / 443.5 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2127, allocations: 2.969 kB / 443.5 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.2127, allocations: 6.688 kB / 443.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2127, allocations: 7.078 kB / 443.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2127, allocations: 4 kB / 443.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004264/0.2132, allocations: 401 kB / 443.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.2132, allocations: 101.3 kB / 444 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.2133, allocations: 7.484 kB / 444 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.2135, allocations: 28.23 kB / 444 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.832e-05/0.2136, allocations: 9.438 kB / 444.1 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.2136, allocations: 12.55 kB / 444.1 MB, free: 33.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003292/0.2139, allocations: 213.9 kB / 444.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2139, allocations: 0 / 444.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002406/0.2142, allocations: 34.94 kB / 444.3 MB, free: 33.79 MB / 350.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.0005391/0.2147, allocations: 0.942 MB / 445.2 MB, free: 33.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002583/0.215, allocations: 169.1 kB / 445.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.215, allocations: 2.844 kB / 445.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.2151, allocations: 92.06 kB / 445.5 MB, free: 32.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.2154, allocations: 38.53 kB / 445.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.2182, allocations: 2.542 MB / 448.1 MB, free: 31.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.2183, allocations: 0.7503 MB / 448.8 MB, free: 30.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.2184, allocations: 45.44 kB / 448.9 MB, free: 30.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.394e-05/0.2185, allocations: 65.95 kB / 448.9 MB, free: 30.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2185, allocations: 0 / 448.9 MB, free: 30.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01175/0.2303, allocations: 3.869 MB / 452.8 MB, free: 30.12 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001298/0.2304, allocations: 188.8 kB / 453 MB, free: 29.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/1.818, allocations: 3.375 kB / 453 MB, free: 29.87 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_DaisyChain_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_DaisyChain.fmu > AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe 2>&1)