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.001376/0.001376, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001826/0.001826, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.464/1.464, allocations: 230.6 MB / 256 MB, free: 7.996 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.11/0.11, allocations: 24.12 MB / 336.6 MB, free: 11.43 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.002417/0.002417, allocations: 67.89 kB / 474.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3381, allocations: 59.59 MB / 0.5212 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002128/0.3402, allocations: 1.031 MB / 0.5222 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.3417, allocations: 1.303 MB / 0.5234 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.62e-05/0.3418, allocations: 1.156 kB / 0.5234 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003598/0.3422, allocations: 57.19 kB / 0.5235 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.3424, allocations: 66.8 kB / 0.5236 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.3427, allocations: 118.6 kB / 0.5237 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005662/0.3433, allocations: 364 kB / 0.524 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.3434, allocations: 16.36 kB / 0.524 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.3436, allocations: 136.2 kB / 0.5242 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.3439, allocations: 164.3 kB / 0.5243 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.3439, allocations: 16.69 kB / 0.5243 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.691e-05/0.344, allocations: 16.56 kB / 0.5244 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.3441, allocations: 90.2 kB / 0.5244 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.314e-05/0.3442, allocations: 90.38 kB / 0.5245 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.3445, allocations: 214.3 kB / 0.5247 GB, free: 8.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3445, allocations: 0 / 0.5247 GB, free: 8.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3445, allocations: 0 / 0.5247 GB, free: 8.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.3445, allocations: 0 / 0.5247 GB, free: 8.402 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.001718/0.3462, allocations: 0.5852 MB / 0.5253 GB, free: 8.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.3463, allocations: 11.28 kB / 0.5253 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.271e-05/0.3463, allocations: 48.36 kB / 0.5254 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.182e-05/0.3464, allocations: 23.52 kB / 0.5254 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000772/0.3471, allocations: 292.2 kB / 0.5257 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.3472, allocations: 8.812 kB / 0.5257 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.3472, allocations: 14.64 kB / 0.5257 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.3475, allocations: 165.6 kB / 0.5258 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.3475, allocations: 1.188 kB / 0.5258 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.3475, allocations: 5.094 kB / 0.5259 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.3475, allocations: 2.062 kB / 0.5259 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002828/0.3478, allocations: 158.6 kB / 0.526 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009762/0.3488, allocations: 0.5644 MB / 0.5266 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.3491, allocations: 204.4 kB / 0.5268 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3493, allocations: 107 kB / 0.5269 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.3493, allocations: 6.203 kB / 0.5269 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.3494, allocations: 32.25 kB / 0.5269 GB, free: 7.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 2.264e-06/0.3494, allocations: 3.984 kB / 0.5269 GB, free: 7.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00142/0.3508, allocations: 483.1 kB / 0.5274 GB, free: 6.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.3508, allocations: 58.97 kB / 0.5274 GB, free: 6.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000709/0.3515, allocations: 334 kB / 0.5277 GB, free: 6.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.3515, allocations: 30.64 kB / 0.5278 GB, free: 6.742 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.917e-05/0.3516, allocations: 131.2 kB / 0.5279 GB, free: 6.625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.11e-05/0.3517, allocations: 82 kB / 0.528 GB, free: 6.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.818e-05/0.3517, allocations: 40.3 kB / 0.528 GB, free: 6.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.3518, allocations: 332.7 kB / 0.5283 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.352, allocations: 88.66 kB / 0.5284 GB, free: 6.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.3521, allocations: 93.42 kB / 0.5285 GB, free: 6.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002185/0.3543, allocations: 0.6163 MB / 0.5291 GB, free: 6.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3543, allocations: 0 / 0.5291 GB, free: 6.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006748/0.355, allocations: 370.1 kB / 0.5294 GB, free: 5.855 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.355, allocations: 5.703 kB / 0.5295 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.355, allocations: 4 kB / 0.5295 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002623/0.3553, allocations: 64.42 kB / 0.5295 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.3555, allocations: 38.03 kB / 0.5296 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.3568, allocations: 1.545 MB / 0.5311 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.3572, allocations: 59.81 kB / 0.5311 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.3572, allocations: 3.531 kB / 0.5311 GB, free: 4.434 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.0001535/0.3574, allocations: 171 kB / 0.5313 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.3574, allocations: 22.45 kB / 0.5313 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.988e-05/0.3575, allocations: 36.61 kB / 0.5313 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.3575, allocations: 5.656 kB / 0.5313 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3575, allocations: 0.7031 kB / 0.5313 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3575, allocations: 1.203 kB / 0.5313 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.3578, allocations: 286.1 kB / 0.5316 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3578, allocations: 0 / 0.5316 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.358, allocations: 28.25 kB / 0.5316 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002287/0.3582, allocations: 76.16 kB / 0.5317 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3583, allocations: 4.469 kB / 0.5317 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.3594, allocations: 1.545 MB / 0.5332 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3594, allocations: 5.031 kB / 0.5332 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008176/0.3602, allocations: 0.5206 MB / 0.5337 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.3603, allocations: 28.61 kB / 0.5338 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.3603, allocations: 8.109 kB / 0.5338 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/0.3607, allocations: 49 kB / 0.5338 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.3608, allocations: 21.33 kB / 0.5338 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3608, allocations: 4.219 kB / 0.5339 GB, free: 2.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006083/0.3614, allocations: 271.2 kB / 0.5341 GB, free: 2.199 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3614, allocations: 0 / 0.5341 GB, free: 2.199 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003451/0.3617, allocations: 46 kB / 0.5342 GB, free: 2.195 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.0009799/0.3627, allocations: 1.064 MB / 0.5352 GB, free: 1.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006367/0.3634, allocations: 364 kB / 0.5355 GB, free: 1.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3634, allocations: 1.062 kB / 0.5355 GB, free: 1.199 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003287/0.3637, allocations: 234.4 kB / 0.5358 GB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.3641, allocations: 40.44 kB / 0.5358 GB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00506/0.3691, allocations: 3.016 MB / 0.5388 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/0.3696, allocations: 0.7639 MB / 0.5395 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001631/0.3698, allocations: 57.88 kB / 0.5396 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.3699, allocations: 64.72 kB / 0.5396 GB, free: 14.52 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3699, allocations: 0 / 0.5396 GB, free: 14.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03981/0.4097, allocations: 6.045 MB / 0.5455 GB, free: 12.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.32, allocations: 3.938 kB / 0.5455 GB, free: 12.13 MB / 398.1 MB " [Timeout remaining time 647] (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: 16.013614313211292] Failed to read output from testmodel.py, exit status != 0: 13.44227326917462 13.459669834 13.111843346 Calling exit ...