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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 225.6 MB / 247.8 MB, free: 3.742 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09392/0.09392, allocations: 22.69 MB / 325.4 MB, free: 7.934 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 66.55 kB / 457.1 MB, free: 41.27 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08343/0.08527, allocations: 58.03 MB / 0.5031 GB, free: 8.258 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002531/0.0878, allocations: 2.388 MB / 0.5054 GB, free: 5.855 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.0889, allocations: 0.7831 MB / 0.5062 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.08908, allocations: 11.94 kB / 0.5062 GB, free: 5.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001823/0.08927, allocations: 51.39 kB / 0.5063 GB, free: 5.004 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.08938, allocations: 55.47 kB / 0.5063 GB, free: 4.949 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.08977, allocations: 181.9 kB / 0.5065 GB, free: 4.773 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002598/0.09003, allocations: 323.7 kB / 0.5068 GB, free: 4.457 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.09021, allocations: 96.17 kB / 0.5069 GB, free: 4.363 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.988e-05/0.0903, allocations: 119.4 kB / 0.507 GB, free: 4.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.09041, allocations: 123.3 kB / 0.5071 GB, free: 4.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.09044, allocations: 24 kB / 0.5071 GB, free: 4.102 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.575e-05/0.09047, allocations: 24 kB / 0.5072 GB, free: 4.078 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.534e-05/0.0905, allocations: 59.72 kB / 0.5072 GB, free: 4.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.298e-05/0.09058, allocations: 139.1 kB / 0.5073 GB, free: 3.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.09083, allocations: 314.5 kB / 0.5076 GB, free: 3.574 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.09084, allocations: 0 / 0.5076 GB, free: 3.574 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09084, allocations: 0 / 0.5076 GB, free: 3.574 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.321e-06/0.09084, allocations: 0 / 0.5076 GB, free: 3.574 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.0007006/0.09154, allocations: 0.6036 MB / 0.5082 GB, free: 2.922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.09158, allocations: 12.02 kB / 0.5082 GB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.693e-05/0.09163, allocations: 58.73 kB / 0.5083 GB, free: 2.844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.09168, allocations: 36.7 kB / 0.5083 GB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/0.09205, allocations: 327.6 kB / 0.5087 GB, free: 2.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.09207, allocations: 16.81 kB / 0.5087 GB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.307e-05/0.0921, allocations: 20.38 kB / 0.5087 GB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000352/0.09245, allocations: 265.2 kB / 0.5089 GB, free: 2.129 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.09246, allocations: 0 / 0.5089 GB, free: 2.129 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.09248, allocations: 8 kB / 0.5089 GB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.09249, allocations: 4 kB / 0.509 GB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.09276, allocations: 161.6 kB / 0.5091 GB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.09377, allocations: 1.03 MB / 0.5101 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.09409, allocations: 178.9 kB / 0.5103 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.09422, allocations: 76.83 kB / 0.5104 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.09424, allocations: 4 kB / 0.5104 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.403e-05/0.09426, allocations: 42.44 kB / 0.5104 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.09426, allocations: 0 / 0.5104 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004626/0.09472, allocations: 251 kB / 0.5106 GB, free: 304 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.09476, allocations: 85.11 kB / 0.5107 GB, free: 200 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.095, allocations: 272.6 kB / 0.511 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.09503, allocations: 33.7 kB / 0.511 GB, free: 15.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.09517, allocations: 188.1 kB / 0.5112 GB, free: 15.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.723e-05/0.09523, allocations: 63.44 kB / 0.5113 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.0953, allocations: 45.7 kB / 0.5113 GB, free: 15.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.09546, allocations: 338.8 kB / 0.5116 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.09563, allocations: 72.83 kB / 0.5117 GB, free: 15.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.09584, allocations: 123 kB / 0.5118 GB, free: 15.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008802/0.09672, allocations: 333.5 kB / 0.5121 GB, free: 14.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.09672, allocations: 0 / 0.5121 GB, free: 14.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004387/0.09716, allocations: 247.1 kB / 0.5124 GB, free: 14.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.09718, allocations: 8 kB / 0.5124 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.09718, allocations: 3.938 kB / 0.5124 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.0972, allocations: 4 kB / 0.5124 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.09739, allocations: 44.08 kB / 0.5124 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.0974, allocations: 4 kB / 0.5124 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.09752, allocations: 23.88 kB / 0.5124 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.09754, allocations: 12 kB / 0.5125 GB, free: 14.34 MB / 382.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.0002457/0.09779, allocations: 156.1 kB / 0.5126 GB, free: 14.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000148/0.09794, allocations: 110.8 kB / 0.5127 GB, free: 14.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006756/0.09861, allocations: 294 kB / 0.513 GB, free: 13.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.202e-06/0.09862, allocations: 0 / 0.513 GB, free: 13.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003468/0.09896, allocations: 222.6 kB / 0.5132 GB, free: 13.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.09897, allocations: 8 kB / 0.5132 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-06/0.09898, allocations: 4.156 kB / 0.5132 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.75e-06/0.09898, allocations: 8 kB / 0.5132 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.09915, allocations: 43.92 kB / 0.5133 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.09915, allocations: 0 / 0.5133 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.09926, allocations: 19.89 kB / 0.5133 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.09927, allocations: 4 kB / 0.5133 GB, free: 13.44 MB / 382.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.0001525/0.09942, allocations: 208.9 kB / 0.5135 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.392e-05/0.09948, allocations: 35.8 kB / 0.5135 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.266e-05/0.09956, allocations: 34.25 kB / 0.5136 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.09956, allocations: 0 / 0.5136 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.09957, allocations: 0 / 0.5136 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.09957, allocations: 0 / 0.5136 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005236/0.1001, allocations: 341.3 kB / 0.5139 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1001, allocations: 7.984 kB / 0.5139 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.1003, allocations: 31.98 kB / 0.5139 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1003, allocations: 0 / 0.5139 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.1003, allocations: 0 / 0.5139 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.1003, allocations: 11.94 kB / 0.5139 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1003, allocations: 0 / 0.5139 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005799/0.1009, allocations: 381.4 kB / 0.5143 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.101, allocations: 120.9 kB / 0.5144 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.101, allocations: 4 kB / 0.5144 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.1012, allocations: 12 kB / 0.5144 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.482e-05/0.1012, allocations: 7.984 kB / 0.5144 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.1012, allocations: 7.938 kB / 0.5144 GB, free: 12.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001918/0.1014, allocations: 199.1 kB / 0.5146 GB, free: 11.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1014, allocations: 0 / 0.5146 GB, free: 11.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.1018, allocations: 87.8 kB / 0.5147 GB, free: 11.89 MB / 382.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.0008791/0.1027, allocations: 0.9164 MB / 0.5156 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005162/0.1032, allocations: 248.1 kB / 0.5158 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1032, allocations: 4.125 kB / 0.5158 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001764/0.1034, allocations: 75.89 kB / 0.5159 GB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.1038, allocations: 70.27 kB / 0.516 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.1073, allocations: 2.675 MB / 0.5186 GB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.1077, allocations: 0.7674 MB / 0.5193 GB, free: 6.984 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.1078, allocations: 34.27 kB / 0.5194 GB, free: 6.953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.1079, allocations: 91.41 kB / 0.5195 GB, free: 6.863 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1079, allocations: 0 / 0.5195 GB, free: 6.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03036/0.1383, allocations: 5.621 MB / 0.525 GB, free: 1.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.05, allocations: 7.188 kB / 0.525 GB, free: 1.336 MB / 382.1 MB " [Timeout remaining time 652] (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 --stepSize=4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.5730958157219] Failed to read output from testmodel.py, exit status != 0: 8.116800227668136 8.131223216 8.037723441 Calling exit ...