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.001371/0.001371, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.002049/0.002049, allocations: 212.6 kB / 23.01 MB, free: 4.992 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.57/1.57, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.1101/0.1101, allocations: 24.03 MB / 337.2 MB, free: 11.46 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) Running command: translateModel(AES.Coursework.Typical_control_structures.Hi_gain_linearising,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising") translateModel(AES.Coursework.Typical_control_structures.Hi_gain_linearising,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising") [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.003509/0.003509, allocations: 69.92 kB / 475.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5148/0.5183, allocations: 59.57 MB / 0.5221 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002439/0.5207, allocations: 0.9792 MB / 0.5231 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.5225, allocations: 1.26 MB / 0.5243 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.507e-05/0.5226, allocations: 1.281 kB / 0.5243 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003417/0.5229, allocations: 56.02 kB / 0.5244 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.5231, allocations: 68.5 kB / 0.5244 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.5234, allocations: 118.4 kB / 0.5246 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/0.5238, allocations: 351.9 kB / 0.5249 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.524, allocations: 23.72 kB / 0.5249 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.5242, allocations: 126.2 kB / 0.525 GB, free: 9.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.5245, allocations: 161.5 kB / 0.5252 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.5245, allocations: 16.56 kB / 0.5252 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.323e-05/0.5246, allocations: 21.59 kB / 0.5252 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.5247, allocations: 89.72 kB / 0.5253 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.375e-05/0.5248, allocations: 69.89 kB / 0.5254 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.5251, allocations: 217.4 kB / 0.5256 GB, free: 8.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.5251, allocations: 0 / 0.5256 GB, free: 8.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5251, allocations: 1.219 kB / 0.5256 GB, free: 8.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.5251, allocations: 0 / 0.5256 GB, free: 8.855 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.001674/0.5268, allocations: 0.5808 MB / 0.5262 GB, free: 8.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.5268, allocations: 11.05 kB / 0.5262 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.626e-05/0.5269, allocations: 23.56 kB / 0.5262 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008503/0.5277, allocations: 290 kB / 0.5265 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.5278, allocations: 14.22 kB / 0.5265 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.5278, allocations: 15.64 kB / 0.5265 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003149/0.5281, allocations: 160.3 kB / 0.5266 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.5281, allocations: 1.156 kB / 0.5266 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.5282, allocations: 9.094 kB / 0.5267 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.5282, allocations: 2.781 kB / 0.5267 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/0.5285, allocations: 159.5 kB / 0.5268 GB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009699/0.5294, allocations: 0.4993 MB / 0.5273 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.5298, allocations: 203.5 kB / 0.5275 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.53, allocations: 105.4 kB / 0.5276 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.53, allocations: 6.078 kB / 0.5276 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.612e-05/0.53, allocations: 37.12 kB / 0.5276 GB, free: 7.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.684e-06/0.53, allocations: 0 / 0.5276 GB, free: 7.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001423/0.5314, allocations: 487.5 kB / 0.5281 GB, free: 7.535 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.5315, allocations: 57.98 kB / 0.5282 GB, free: 7.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007269/0.5322, allocations: 338.5 kB / 0.5285 GB, free: 7.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.5322, allocations: 25.7 kB / 0.5285 GB, free: 7.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.271e-05/0.5323, allocations: 140.1 kB / 0.5286 GB, free: 7.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.579e-05/0.5323, allocations: 70.09 kB / 0.5287 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.773e-05/0.5324, allocations: 40.38 kB / 0.5287 GB, free: 7.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.722e-05/0.5325, allocations: 337.2 kB / 0.5291 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.5326, allocations: 89.45 kB / 0.5291 GB, free: 6.727 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.5328, allocations: 92.05 kB / 0.5292 GB, free: 6.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001962/0.5348, allocations: 0.6169 MB / 0.5298 GB, free: 6.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.5348, allocations: 0 / 0.5298 GB, free: 6.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000682/0.5354, allocations: 365.6 kB / 0.5302 GB, free: 6.402 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5355, allocations: 9.656 kB / 0.5302 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.5355, allocations: 0 / 0.5302 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002689/0.5357, allocations: 68.36 kB / 0.5303 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.5359, allocations: 34.5 kB / 0.5303 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.5373, allocations: 1.514 MB / 0.5318 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003585/0.5376, allocations: 56.12 kB / 0.5318 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.5377, allocations: 8.406 kB / 0.5318 GB, free: 5.02 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.0001599/0.5378, allocations: 163.8 kB / 0.532 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.862e-05/0.5379, allocations: 21.7 kB / 0.532 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.071e-05/0.538, allocations: 36.39 kB / 0.532 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.538, allocations: 2.188 kB / 0.532 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.538, allocations: 0.5312 kB / 0.532 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.538, allocations: 5.219 kB / 0.5321 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.5383, allocations: 225.7 kB / 0.5323 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.5383, allocations: 0 / 0.5323 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.5385, allocations: 32.75 kB / 0.5323 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000232/0.5387, allocations: 69 kB / 0.5324 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.5387, allocations: 9.281 kB / 0.5324 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.5399, allocations: 1.509 MB / 0.5338 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.5399, allocations: 5.125 kB / 0.5339 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008352/0.5408, allocations: 0.5252 MB / 0.5344 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.139e-05/0.5408, allocations: 29.3 kB / 0.5344 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.5409, allocations: 7.656 kB / 0.5344 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000383/0.5413, allocations: 41.41 kB / 0.5344 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.507e-05/0.5413, allocations: 24.97 kB / 0.5345 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.5413, allocations: 4.578 kB / 0.5345 GB, free: 2.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006458/0.542, allocations: 263.8 kB / 0.5347 GB, free: 2.883 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.542, allocations: 0 / 0.5347 GB, free: 2.883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003672/0.5423, allocations: 53.09 kB / 0.5348 GB, free: 2.871 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.0001243/0.5425, allocations: 109 kB / 0.5349 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006641/0.5431, allocations: 354.9 kB / 0.5352 GB, free: 2.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5431, allocations: 1.219 kB / 0.5352 GB, free: 2.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.5435, allocations: 242.3 kB / 0.5354 GB, free: 2.441 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.5439, allocations: 35.72 kB / 0.5355 GB, free: 2.426 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000893/0.5447, allocations: 0.5434 MB / 0.536 GB, free: 2.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.5449, allocations: 157 kB / 0.5362 GB, free: 2.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.5451, allocations: 58.88 kB / 0.5362 GB, free: 2.016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/0.5451, allocations: 17.88 kB / 0.5362 GB, free: 2.008 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5451, allocations: 3.938 kB / 0.5362 GB, free: 2.004 MB / 382.1 MB Notification: Performance of Templates: time 0.007458/0.5526, allocations: 3.259 MB / 0.5394 GB, free: 1.324 MB / 382.1 MB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.makefile [Timeout 660] (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 & ./AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.468158897012472] Failed to read output from testmodel.py, exit status != 0: 0.5638766847550869 0.5788975350000001 0.050322988000000006 Calling exit ...