Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.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.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",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.001194/0.001194, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001155/0.001155, allocations: 192.1 kB / 16.25 MB, free: 6.637 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.199/1.199, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1712/0.1712, allocations: 22.36 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.91 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2107, allocations: 54.94 MB / 435.4 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002554/0.2132, allocations: 2.407 MB / 437.8 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008747/0.2141, allocations: 0.7725 MB / 438.5 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.2143, allocations: 11.75 kB / 438.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.2144, allocations: 34.09 kB / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.2145, allocations: 40.86 kB / 438.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.2149, allocations: 154 kB / 438.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002219/0.2151, allocations: 321.7 kB / 439.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.2153, allocations: 133.7 kB / 439.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.556e-05/0.2154, allocations: 104.3 kB / 439.3 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.44e-05/0.2155, allocations: 124.3 kB / 439.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.368e-05/0.2155, allocations: 23.12 kB / 439.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.745e-05/0.2155, allocations: 27.41 kB / 439.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.421e-05/0.2156, allocations: 63.53 kB / 439.6 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.338e-05/0.2156, allocations: 131.3 kB / 439.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.2158, allocations: 297.3 kB / 440 MB, free: 36.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2158, allocations: 0 / 440 MB, free: 36.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2158, allocations: 7.938 kB / 440 MB, free: 36.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.2159, allocations: 0 / 440 MB, free: 36.61 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0005973/0.2165, allocations: 0.5959 MB / 440.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2165, allocations: 10.31 kB / 440.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.956e-05/0.2165, allocations: 59.62 kB / 440.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.2166, allocations: 45.78 kB / 440.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.2168, allocations: 299.9 kB / 441 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2169, allocations: 20.53 kB / 441 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.2169, allocations: 20.3 kB / 441 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.2172, allocations: 257.3 kB / 441.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2173, allocations: 7.938 kB / 441.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.2173, allocations: 14.88 kB / 441.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.2173, allocations: 3.625 kB / 441.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/0.2176, allocations: 157.3 kB / 441.5 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009782/0.2186, allocations: 1.031 MB / 442.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.2189, allocations: 206.1 kB / 442.7 MB, free: 34.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.219, allocations: 78.72 kB / 442.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.2191, allocations: 2.812 kB / 442.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.193e-05/0.2191, allocations: 41.78 kB / 442.8 MB, free: 34.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.122e-06/0.2191, allocations: 0 / 442.8 MB, free: 34.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004389/0.2195, allocations: 247.2 kB / 443 MB, free: 34.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.349e-05/0.2196, allocations: 80.67 kB / 443.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.2197, allocations: 277.2 kB / 443.4 MB, free: 34.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.2197, allocations: 29.7 kB / 443.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.727e-05/0.2198, allocations: 185.9 kB / 443.6 MB, free: 33.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.2199, allocations: 63.11 kB / 443.7 MB, free: 33.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.2199, allocations: 43.64 kB / 443.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.499e-05/0.22, allocations: 335.4 kB / 444 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.2201, allocations: 66.52 kB / 444.1 MB, free: 33.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.2202, allocations: 127.1 kB / 444.2 MB, free: 33.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000712/0.221, allocations: 330.6 kB / 444.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.221, allocations: 2.969 kB / 444.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003338/0.2213, allocations: 246.6 kB / 444.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.2213, allocations: 7.312 kB / 444.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.2213, allocations: 0 / 444.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.2214, allocations: 2.781 kB / 444.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.2215, allocations: 50.73 kB / 444.9 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.2216, allocations: 2.719 kB / 444.9 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.2217, allocations: 23.5 kB / 444.9 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.2217, allocations: 9.5 kB / 444.9 MB, free: 33.18 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002133/0.2219, allocations: 161.8 kB / 445 MB, free: 33.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.846e-05/0.222, allocations: 108.5 kB / 445.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005534/0.2226, allocations: 310.9 kB / 445.5 MB, free: 32.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.162e-06/0.2226, allocations: 0 / 445.5 MB, free: 32.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002575/0.2228, allocations: 220.1 kB / 445.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.2229, allocations: 5.875 kB / 445.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-06/0.2229, allocations: 0 / 445.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-06/0.2229, allocations: 3.031 kB / 445.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.223, allocations: 39.2 kB / 445.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.223, allocations: 10.42 kB / 445.7 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.2231, allocations: 17.41 kB / 445.7 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.2231, allocations: 9.844 kB / 445.8 MB, free: 32.68 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 (PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 7.15e-05/0.2232, allocations: 206 kB / 446 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.2233, allocations: 28.19 kB / 446 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.392e-05/0.2233, allocations: 35.09 kB / 446 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.2233, allocations: 7.438 kB / 446 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2233, allocations: 0 / 446 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2234, allocations: 3.938 kB / 446 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003291/0.2237, allocations: 341.9 kB / 446.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2237, allocations: 0 / 446.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.2239, allocations: 27.3 kB / 446.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2239, allocations: 0 / 446.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.2239, allocations: 10.23 kB / 446.4 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2239, allocations: 0 / 446.4 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2239, allocations: 0 / 446.4 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004439/0.2244, allocations: 388.9 kB / 446.8 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.053e-05/0.2244, allocations: 119.2 kB / 446.9 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.2245, allocations: 6.656 kB / 446.9 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.2246, allocations: 2.844 kB / 446.9 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.2246, allocations: 16.03 kB / 446.9 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2247, allocations: 13.41 kB / 446.9 MB, free: 31.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.2248, allocations: 192.5 kB / 447.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2248, allocations: 0 / 447.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.2251, allocations: 85.03 kB / 447.2 MB, free: 31.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (F.y,S.y,T.y,PIp.I.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 (17): * Single equations (assignments): 17 * 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.0005457/0.2257, allocations: 0.9164 MB / 448.1 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004229/0.2261, allocations: 263.3 kB / 448.4 MB, free: 30.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2261, allocations: 0 / 448.4 MB, free: 30.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.2262, allocations: 84.02 kB / 448.5 MB, free: 30.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.2267, allocations: 81.45 kB / 448.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.229, allocations: 2.77 MB / 451.3 MB, free: 28.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.2291, allocations: 0.7695 MB / 452.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.2292, allocations: 28.86 kB / 452.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.2293, allocations: 87.89 kB / 452.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2293, allocations: 0 / 452.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01483/0.2442, allocations: 5.401 MB / 457.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/0.2443, allocations: 190.9 kB / 457.8 MB, free: 27.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/1.889, allocations: 0 / 457.8 MB, free: 27.29 MB / 350.1 MB (rm -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_SlidingPressure_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)