Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 102.6 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.427/1.427, allocations: 230.6 MB / 252.8 MB, free: 9.141 MB / 206.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.106/0.106, allocations: 24.11 MB / 333 MB, free: 12.63 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002694/0.002694, allocations: 67.89 kB / 468.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3469, allocations: 59.56 MB / 0.5157 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002092/0.3489, allocations: 1.021 MB / 0.5167 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.3504, allocations: 1.309 MB / 0.518 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.414e-05/0.3505, allocations: 6.375 kB / 0.518 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.3508, allocations: 54.73 kB / 0.5181 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.351, allocations: 63.61 kB / 0.5181 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.3512, allocations: 102.6 kB / 0.5182 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003002/0.3515, allocations: 279.4 kB / 0.5185 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3516, allocations: 28.59 kB / 0.5185 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.3517, allocations: 118.6 kB / 0.5186 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.352, allocations: 168.1 kB / 0.5188 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.352, allocations: 16.81 kB / 0.5188 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.208e-05/0.352, allocations: 17 kB / 0.5188 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.3522, allocations: 92.94 kB / 0.5189 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.964e-05/0.3522, allocations: 88.62 kB / 0.519 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.3525, allocations: 207.3 kB / 0.5192 GB, free: 7.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3525, allocations: 0 / 0.5192 GB, free: 7.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3525, allocations: 1.344 kB / 0.5192 GB, free: 7.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.3525, allocations: 4 kB / 0.5192 GB, free: 7.988 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001564/0.3541, allocations: 0.656 MB / 0.5198 GB, free: 7.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.3541, allocations: 9.5 kB / 0.5198 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.721e-05/0.3541, allocations: 41.2 kB / 0.5199 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.843e-05/0.3542, allocations: 28.23 kB / 0.5199 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007874/0.355, allocations: 360 kB / 0.5203 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.355, allocations: 3.906 kB / 0.5203 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.355, allocations: 15.86 kB / 0.5203 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.3553, allocations: 157.8 kB / 0.5204 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3553, allocations: 5.094 kB / 0.5204 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.3553, allocations: 4 kB / 0.5204 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3554, allocations: 3.828 kB / 0.5204 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.3556, allocations: 159 kB / 0.5206 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009221/0.3566, allocations: 0.5968 MB / 0.5212 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.3569, allocations: 195.3 kB / 0.5214 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.3571, allocations: 104.8 kB / 0.5215 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.3571, allocations: 5.422 kB / 0.5215 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.3571, allocations: 36.16 kB / 0.5215 GB, free: 6.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.423e-06/0.3571, allocations: 7.938 kB / 0.5215 GB, free: 6.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00133/0.3585, allocations: 0.5458 MB / 0.522 GB, free: 6.293 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.3585, allocations: 56.84 kB / 0.5221 GB, free: 6.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006861/0.3592, allocations: 341.5 kB / 0.5224 GB, free: 6.062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.3592, allocations: 26.7 kB / 0.5224 GB, free: 6.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.402e-05/0.3592, allocations: 137.9 kB / 0.5226 GB, free: 5.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.797e-05/0.3593, allocations: 67.02 kB / 0.5226 GB, free: 5.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-05/0.3594, allocations: 40.39 kB / 0.5227 GB, free: 5.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.3594, allocations: 337.3 kB / 0.523 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.3596, allocations: 94.72 kB / 0.5231 GB, free: 5.473 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.3597, allocations: 96.27 kB / 0.5232 GB, free: 5.438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.3616, allocations: 0.6089 MB / 0.5238 GB, free: 5.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3616, allocations: 1.25 kB / 0.5238 GB, free: 5.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006584/0.3623, allocations: 369.6 kB / 0.5241 GB, free: 5.145 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3623, allocations: 5.656 kB / 0.5241 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3623, allocations: 0.5156 kB / 0.5241 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.3626, allocations: 71.39 kB / 0.5242 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.3628, allocations: 38.22 kB / 0.5242 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.364, allocations: 1.654 MB / 0.5259 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003659/0.3644, allocations: 50.34 kB / 0.5259 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.3644, allocations: 9.469 kB / 0.5259 GB, free: 3.598 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: C.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.3645, allocations: 156.4 kB / 0.5261 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.256e-05/0.3646, allocations: 21.7 kB / 0.5261 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.358e-05/0.3647, allocations: 35.31 kB / 0.5261 GB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.3647, allocations: 7.781 kB / 0.5261 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3647, allocations: 5.812 kB / 0.5261 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3647, allocations: 0.6562 kB / 0.5261 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/0.365, allocations: 319 kB / 0.5264 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.365, allocations: 0 / 0.5264 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002057/0.3652, allocations: 31.22 kB / 0.5265 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002154/0.3654, allocations: 68.52 kB / 0.5265 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.3655, allocations: 9.188 kB / 0.5265 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.3665, allocations: 1.656 MB / 0.5282 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3665, allocations: 0 / 0.5282 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008029/0.3673, allocations: 0.5189 MB / 0.5287 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.042e-05/0.3674, allocations: 105 kB / 0.5288 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.3674, allocations: 13 kB / 0.5288 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.3678, allocations: 44.03 kB / 0.5288 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.129e-05/0.3679, allocations: 19.8 kB / 0.5288 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.3679, allocations: 5.516 kB / 0.5288 GB, free: 1.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006347/0.3685, allocations: 270.5 kB / 0.5291 GB, free: 1.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3685, allocations: 1.312 kB / 0.5291 GB, free: 1.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000325/0.3688, allocations: 44.88 kB / 0.5291 GB, free: 1.109 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pol.x_scaled[1],Pol.x_scaled[2],Pcl.x_scaled[1],Pcl.x_scaled[2],C.x_scaled[1],C.x_scaled[2]) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009607/0.3698, allocations: 1.075 MB / 0.5302 GB, free: 304 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006436/0.3704, allocations: 356.1 kB / 0.5305 GB, free: 116 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3704, allocations: 0 / 0.5305 GB, free: 116 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000371/0.3708, allocations: 243.1 kB / 0.5308 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.3712, allocations: 32.2 kB / 0.5308 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00534/0.3765, allocations: 3.009 MB / 0.5337 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.3769, allocations: 0.7686 MB / 0.5345 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001544/0.3771, allocations: 53.97 kB / 0.5345 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.3772, allocations: 67.08 kB / 0.5346 GB, free: 13.45 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3772, allocations: 1.094 kB / 0.5346 GB, free: 13.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.4124, allocations: 5.897 MB / 0.5404 GB, free: 11.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.77, allocations: 2 kB / 0.5404 GB, free: 11.49 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising_fmu --startTime=0 --stopTime=10 --stepSize=0.02 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising.fmu > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.407425567973405] Failed to read output from testmodel.py, exit status != 0: 11.861968251876533 11.876969544 11.521283062 Calling exit ...