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.0009935/0.0009936, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005792/0.005792, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.122/1.122, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1585/0.1585, allocations: 22.34 MB / 313.8 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.000237, allocations: 12 kB / 382.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2003, allocations: 55.97 MB / 438.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.001634/0.202, allocations: 2.051 MB / 440.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009418/0.203, allocations: 0.7594 MB / 441.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.2032, allocations: 12.16 kB / 441.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.2033, allocations: 40.86 kB / 441.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.2034, allocations: 29.91 kB / 441.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.2037, allocations: 167.2 kB / 441.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.204, allocations: 302.5 kB / 442 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.2041, allocations: 126.7 kB / 442.2 MB, free: 37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.316e-05/0.2042, allocations: 77.52 kB / 442.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.594e-05/0.2043, allocations: 93.36 kB / 442.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.2043, allocations: 8.438 kB / 442.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.933e-05/0.2044, allocations: 10.12 kB / 442.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.504e-05/0.2044, allocations: 33.77 kB / 442.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.122e-05/0.2045, allocations: 132.6 kB / 442.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.2046, allocations: 269.7 kB / 442.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2046, allocations: 0 / 442.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2046, allocations: 0 / 442.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.2046, allocations: 0 / 442.8 MB, free: 36.68 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.0005222/0.2052, allocations: 0.5548 MB / 443.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.2052, allocations: 12.72 kB / 443.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.2053, allocations: 60.69 kB / 443.4 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.731e-05/0.2053, allocations: 41.78 kB / 443.4 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.2055, allocations: 299 kB / 443.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.2056, allocations: 17.56 kB / 443.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.2056, allocations: 19.84 kB / 443.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.2059, allocations: 270.3 kB / 444 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.2059, allocations: 2.5 kB / 444 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.206, allocations: 10.88 kB / 444 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.206, allocations: 5.031 kB / 444 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002752/0.2063, allocations: 162.6 kB / 444.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009708/0.2072, allocations: 1.046 MB / 445.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.2076, allocations: 214.1 kB / 445.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.2077, allocations: 82.73 kB / 445.5 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.2077, allocations: 7.938 kB / 445.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.216e-05/0.2078, allocations: 40.59 kB / 445.6 MB, free: 34.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.202e-06/0.2078, allocations: 0 / 445.6 MB, free: 34.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004461/0.2082, allocations: 260 kB / 445.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.2082, allocations: 80.36 kB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.2084, allocations: 276.5 kB / 446.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.2084, allocations: 32.33 kB / 446.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.2085, allocations: 179.7 kB / 446.4 MB, free: 34.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.2085, allocations: 66.3 kB / 446.5 MB, free: 34.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.2086, allocations: 23.02 kB / 446.5 MB, free: 34.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.25e-05/0.2086, allocations: 341.7 kB / 446.8 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.2088, allocations: 75.08 kB / 446.9 MB, free: 33.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.2089, allocations: 119.7 kB / 447 MB, free: 33.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007014/0.2096, allocations: 350.9 kB / 447.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2096, allocations: 0 / 447.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003407/0.21, allocations: 250 kB / 447.6 MB, free: 33.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.21, allocations: 135.8 kB / 447.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.21, allocations: 0 / 447.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.21, allocations: 2.656 kB / 447.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.2102, allocations: 49.23 kB / 447.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.2102, allocations: 0 / 447.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.2103, allocations: 34.78 kB / 447.8 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2103, allocations: 6.562 kB / 447.8 MB, free: 33.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-06/0.2103, allocations: 3.281 kB / 447.8 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002135/0.2106, allocations: 174.8 kB / 448 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-06/0.2106, allocations: 3.375 kB / 448 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-06/0.2106, allocations: 0 / 448 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.2107, allocations: 40.77 kB / 448 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-06/0.2107, allocations: 2.969 kB / 448 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.082e-05/0.2108, allocations: 22.09 kB / 448.1 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-06/0.2108, allocations: 5.094 kB / 448.1 MB, free: 33.04 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 0.0001531/0.211, allocations: 232.4 kB / 448.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.211, allocations: 33.47 kB / 448.3 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.456e-05/0.2111, allocations: 34.53 kB / 448.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2111, allocations: 7.922 kB / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2111, allocations: 4 kB / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2111, allocations: 7.328 kB / 448.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.2114, allocations: 334.8 kB / 448.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.2115, allocations: 3.938 kB / 448.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.2116, allocations: 33.12 kB / 448.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2116, allocations: 0 / 448.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.2116, allocations: 2.688 kB / 448.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.2116, allocations: 6.938 kB / 448.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2117, allocations: 0 / 448.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004337/0.2121, allocations: 393.4 kB / 449.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.2122, allocations: 124.7 kB / 449.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.2122, allocations: 4 kB / 449.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.2123, allocations: 16.55 kB / 449.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.2124, allocations: 6.266 kB / 449.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.2124, allocations: 9.344 kB / 449.3 MB, free: 32.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.2125, allocations: 195.2 kB / 449.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2125, allocations: 0 / 449.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003167/0.2128, allocations: 85.47 kB / 449.6 MB, free: 32 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.0005249/0.2133, allocations: 0.9288 MB / 450.5 MB, free: 31.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003985/0.2137, allocations: 266.8 kB / 450.8 MB, free: 31.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2138, allocations: 0.625 kB / 450.8 MB, free: 31.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.2139, allocations: 84.47 kB / 450.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.2143, allocations: 76.2 kB / 450.9 MB, free: 31.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.2165, allocations: 2.803 MB / 453.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.2167, allocations: 0.7705 MB / 454.5 MB, free: 28.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.671e-05/0.2168, allocations: 31 kB / 454.5 MB, free: 28.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.388e-05/0.2169, allocations: 89.2 kB / 454.6 MB, free: 28.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2169, allocations: 0 / 454.6 MB, free: 28.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01361/0.2305, allocations: 5.147 MB / 459.7 MB, free: 28 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001278/0.2306, allocations: 194.8 kB / 459.9 MB, free: 27.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.387/1.617, allocations: 3.25 kB / 459.9 MB, free: 27.75 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)