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.001195/0.001195, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008288/0.008288, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.371/1.371, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2031/0.2031, allocations: 22.35 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003195, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2453, allocations: 55.98 MB / 438.7 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.00186/0.2472, allocations: 2.052 MB / 440.7 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.2483, allocations: 0.7597 MB / 441.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.2484, allocations: 11.72 kB / 441.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.2486, allocations: 32.67 kB / 441.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.2487, allocations: 39.77 kB / 441.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003648/0.2491, allocations: 164 kB / 441.7 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.2493, allocations: 296.9 kB / 442 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.2496, allocations: 127 kB / 442.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.492e-05/0.2496, allocations: 78.05 kB / 442.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.739e-05/0.2497, allocations: 94.47 kB / 442.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.2498, allocations: 9.25 kB / 442.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.215e-05/0.2498, allocations: 5.75 kB / 442.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.986e-05/0.2498, allocations: 38.52 kB / 442.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.039e-05/0.2499, allocations: 133.9 kB / 442.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.2501, allocations: 267.2 kB / 442.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2501, allocations: 0 / 442.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2501, allocations: 4 kB / 442.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.299e-06/0.2501, allocations: 0 / 442.8 MB, free: 36.88 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.0006116/0.2507, allocations: 0.5504 MB / 443.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.2508, allocations: 19.16 kB / 443.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.639e-05/0.2508, allocations: 58.89 kB / 443.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.293e-05/0.2509, allocations: 36.28 kB / 443.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.2512, allocations: 297.8 kB / 443.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.2512, allocations: 23.34 kB / 443.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.62e-05/0.2512, allocations: 21.5 kB / 443.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000383/0.2516, allocations: 264.4 kB / 444 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.2516, allocations: 2.969 kB / 444 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.2517, allocations: 8 kB / 444 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.2517, allocations: 5.719 kB / 444 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003295/0.252, allocations: 168.9 kB / 444.2 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.2531, allocations: 1.045 MB / 445.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.2535, allocations: 207.7 kB / 445.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.2537, allocations: 93.14 kB / 445.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.2537, allocations: 0 / 445.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.2538, allocations: 41.47 kB / 445.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.613e-06/0.2538, allocations: 0 / 445.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005414/0.2543, allocations: 259.4 kB / 445.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.2544, allocations: 80.14 kB / 445.9 MB, free: 34.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.2546, allocations: 280.8 kB / 446.2 MB, free: 34.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.2546, allocations: 28.2 kB / 446.2 MB, free: 34.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.037e-05/0.2547, allocations: 178.5 kB / 446.4 MB, free: 34.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.2547, allocations: 65.98 kB / 446.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.222e-05/0.2548, allocations: 23.02 kB / 446.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.221e-05/0.2548, allocations: 342.7 kB / 446.8 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.255, allocations: 69.59 kB / 446.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.2551, allocations: 127.6 kB / 447 MB, free: 33.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008259/0.256, allocations: 347.1 kB / 447.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.256, allocations: 4 kB / 447.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004002/0.2564, allocations: 254 kB / 447.6 MB, free: 33.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/0.2565, allocations: 129.5 kB / 447.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2565, allocations: 2.938 kB / 447.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.2565, allocations: 2.906 kB / 447.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.2567, allocations: 50.27 kB / 447.8 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.2567, allocations: 6.906 kB / 447.8 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.2568, allocations: 32.06 kB / 447.8 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.2569, allocations: 6.031 kB / 447.8 MB, free: 33.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.922e-06/0.2569, allocations: 5.656 kB / 447.8 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002521/0.2571, allocations: 168.9 kB / 448 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-06/0.2571, allocations: 2.531 kB / 448 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.617e-06/0.2572, allocations: 6.969 kB / 448 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.2573, allocations: 38.61 kB / 448 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2573, allocations: 3.031 kB / 448 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.2574, allocations: 20.7 kB / 448.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.2575, allocations: 5.688 kB / 448.1 MB, free: 33.23 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.000191/0.2577, allocations: 227.7 kB / 448.3 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.2577, allocations: 31.28 kB / 448.3 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.637e-05/0.2578, allocations: 38.61 kB / 448.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2578, allocations: 0 / 448.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2578, allocations: 7.688 kB / 448.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2578, allocations: 3.328 kB / 448.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003872/0.2582, allocations: 337.9 kB / 448.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2582, allocations: 3.938 kB / 448.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.2584, allocations: 30.06 kB / 448.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2584, allocations: 7.719 kB / 448.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.2585, allocations: 3.375 kB / 448.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2585, allocations: 4 kB / 448.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2585, allocations: 0 / 448.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/0.259, allocations: 398.4 kB / 449.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.998e-05/0.2591, allocations: 119.8 kB / 449.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.2591, allocations: 0 / 449.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.2593, allocations: 15.47 kB / 449.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.2593, allocations: 8.953 kB / 449.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.2593, allocations: 6.656 kB / 449.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.2595, allocations: 196 kB / 449.5 MB, free: 32.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2595, allocations: 0 / 449.5 MB, free: 32.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000388/0.2599, allocations: 89.47 kB / 449.6 MB, free: 32.2 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.0006499/0.2605, allocations: 0.921 MB / 450.5 MB, free: 31.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004724/0.261, allocations: 266.3 kB / 450.7 MB, free: 31.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.261, allocations: 4 kB / 450.7 MB, free: 31.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.2612, allocations: 82.69 kB / 450.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.2617, allocations: 71.62 kB / 450.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/0.2645, allocations: 2.815 MB / 453.7 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.2647, allocations: 0.7636 MB / 454.5 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001327/0.2648, allocations: 33.08 kB / 454.5 MB, free: 28.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.2649, allocations: 86.44 kB / 454.6 MB, free: 28.56 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2649, allocations: 6.625 kB / 454.6 MB, free: 28.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4799/0.7449, allocations: 5.139 MB / 459.7 MB, free: 28.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001599/0.7451, allocations: 205.6 kB / 459.9 MB, free: 27.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.75, allocations: 0 / 459.9 MB, free: 27.95 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)