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.007412/0.007412, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.001904/0.001904, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1933/0.1933, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 67.42 kB / 436.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08476/0.08657, allocations: 54.96 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003154/0.08976, allocations: 2.389 MB / 493.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.09118, allocations: 0.783 MB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.09137, allocations: 7.938 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.09157, allocations: 47.47 kB / 494.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.09171, allocations: 51.47 kB / 494.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.09215, allocations: 179.7 kB / 495 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.09252, allocations: 319.8 kB / 495.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002454/0.09278, allocations: 128.5 kB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.09291, allocations: 107.5 kB / 495.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.09308, allocations: 123.3 kB / 495.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.931e-05/0.09313, allocations: 28 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.875e-05/0.09318, allocations: 24 kB / 495.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.683e-05/0.09324, allocations: 55.78 kB / 495.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.09337, allocations: 139.1 kB / 495.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.09374, allocations: 314.5 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.09375, allocations: 0 / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09376, allocations: 4 kB / 496.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.09378, allocations: 3.938 kB / 496.2 MB, free: 13.04 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008714/0.09465, allocations: 0.6133 MB / 496.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.0947, allocations: 12.03 kB / 496.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.09478, allocations: 54.72 kB / 496.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.222e-05/0.09485, allocations: 40.7 kB / 496.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.09531, allocations: 315.6 kB / 497.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.09534, allocations: 20.81 kB / 497.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.09538, allocations: 20.38 kB / 497.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.09584, allocations: 265.2 kB / 497.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.09586, allocations: 0 / 497.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.09589, allocations: 8 kB / 497.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.09591, allocations: 8 kB / 497.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003501/0.09626, allocations: 161.6 kB / 497.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.09769, allocations: 1.026 MB / 498.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004207/0.09812, allocations: 194.8 kB / 498.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.0983, allocations: 80.83 kB / 499 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.09834, allocations: 4 kB / 499 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.09838, allocations: 42.5 kB / 499 MB, free: 9.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.232e-06/0.09838, allocations: 0 / 499 MB, free: 9.992 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005738/0.09896, allocations: 255.8 kB / 499.3 MB, free: 9.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.09903, allocations: 77.11 kB / 499.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.09931, allocations: 272.6 kB / 499.6 MB, free: 9.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.09934, allocations: 29.7 kB / 499.7 MB, free: 9.328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.09949, allocations: 192.2 kB / 499.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.09954, allocations: 63.44 kB / 499.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.586e-05/0.09963, allocations: 45.7 kB / 500 MB, free: 9.023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.09979, allocations: 342.8 kB / 0.4886 GB, free: 8.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.09996, allocations: 64.83 kB / 0.4886 GB, free: 8.613 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.1002, allocations: 122 kB / 0.4888 GB, free: 8.473 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009222/0.1011, allocations: 326.1 kB / 0.4891 GB, free: 8.137 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1011, allocations: 0 / 0.4891 GB, free: 8.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004525/0.1016, allocations: 251.5 kB / 0.4893 GB, free: 7.887 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1016, allocations: 8 kB / 0.4893 GB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1016, allocations: 7.922 kB / 0.4893 GB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.1016, allocations: 4 kB / 0.4893 GB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.1018, allocations: 35.98 kB / 0.4894 GB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1018, allocations: 7.938 kB / 0.4894 GB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.102, allocations: 28.03 kB / 0.4894 GB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.102, allocations: 12 kB / 0.4894 GB, free: 7.785 MB / 366.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.0002621/0.1023, allocations: 158.9 kB / 0.4896 GB, free: 7.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001565/0.1024, allocations: 109.7 kB / 0.4897 GB, free: 7.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007004/0.1031, allocations: 303.4 kB / 0.4899 GB, free: 7.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.263e-06/0.1032, allocations: 3.938 kB / 0.49 GB, free: 7.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003522/0.1035, allocations: 217.3 kB / 0.4902 GB, free: 6.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.825e-06/0.1035, allocations: 4 kB / 0.4902 GB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1035, allocations: 4 kB / 0.4902 GB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.699e-06/0.1036, allocations: 7.922 kB / 0.4902 GB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.1037, allocations: 39.98 kB / 0.4902 GB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.1037, allocations: 8.156 kB / 0.4902 GB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.1039, allocations: 11.89 kB / 0.4902 GB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.1039, allocations: 15.94 kB / 0.4902 GB, free: 6.879 MB / 366.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.0001403/0.104, allocations: 193.7 kB / 0.4904 GB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.509e-05/0.1041, allocations: 35.81 kB / 0.4905 GB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.777e-05/0.1042, allocations: 26.31 kB / 0.4905 GB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1042, allocations: 4 kB / 0.4905 GB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1042, allocations: 7.984 kB / 0.4905 GB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1042, allocations: 0 / 0.4905 GB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.1047, allocations: 341.3 kB / 0.4908 GB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1047, allocations: 0 / 0.4908 GB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.1049, allocations: 39.91 kB / 0.4909 GB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1049, allocations: 4 kB / 0.4909 GB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.1049, allocations: 0 / 0.4909 GB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.1049, allocations: 3.984 kB / 0.4909 GB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1049, allocations: 0 / 0.4909 GB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006149/0.1056, allocations: 387.1 kB / 0.4912 GB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1057, allocations: 117 kB / 0.4914 GB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.553e-05/0.1057, allocations: 4 kB / 0.4914 GB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.1059, allocations: 11.94 kB / 0.4914 GB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.1059, allocations: 11.98 kB / 0.4914 GB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.1059, allocations: 11.94 kB / 0.4914 GB, free: 5.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001823/0.1061, allocations: 191.1 kB / 0.4916 GB, free: 5.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1061, allocations: 0 / 0.4916 GB, free: 5.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.1065, allocations: 95.73 kB / 0.4917 GB, free: 5.34 MB / 366.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.000902/0.1074, allocations: 0.9124 MB / 0.4926 GB, free: 4.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000533/0.108, allocations: 263.6 kB / 0.4928 GB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.108, allocations: 0 / 0.4928 GB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.1081, allocations: 76.53 kB / 0.4929 GB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004953/0.1086, allocations: 85.62 kB / 0.493 GB, free: 3.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.112, allocations: 2.674 MB / 0.4956 GB, free: 1.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.1124, allocations: 0.7675 MB / 0.4963 GB, free: 420 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001206/0.1125, allocations: 26.28 kB / 0.4963 GB, free: 396 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.1127, allocations: 87.41 kB / 0.4964 GB, free: 308 kB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1127, allocations: 4 kB / 0.4964 GB, free: 304 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.1406, allocations: 5.592 MB / 0.5019 GB, free: 10.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/7.887, allocations: 1.875 kB / 0.5019 GB, free: 10.8 MB / 382.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)