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.00161/0.00161, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002198/0.002198, allocations: 210.5 kB / 22.99 MB, free: 4.957 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.436/1.436, allocations: 230.6 MB / 256.8 MB, free: 7.824 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.1055/0.1055, allocations: 24.13 MB / 337.3 MB, free: 11.25 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: 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.002003/0.002003, allocations: 71.89 kB / 475.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3491, allocations: 59.6 MB / 0.5223 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002438/0.3515, allocations: 0.9831 MB / 0.5233 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.3533, allocations: 1.263 MB / 0.5245 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.033e-05/0.3534, allocations: 2.375 kB / 0.5245 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.3537, allocations: 59.19 kB / 0.5245 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002109/0.3539, allocations: 62.56 kB / 0.5246 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.3542, allocations: 119.4 kB / 0.5247 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.3547, allocations: 358.9 kB / 0.5251 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3548, allocations: 25.41 kB / 0.5251 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.355, allocations: 133.7 kB / 0.5252 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.3553, allocations: 164.9 kB / 0.5254 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/0.3553, allocations: 16.91 kB / 0.5254 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.309e-05/0.3553, allocations: 18.03 kB / 0.5254 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.3555, allocations: 90.28 kB / 0.5255 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.687e-05/0.3555, allocations: 69.58 kB / 0.5256 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.3558, allocations: 217.3 kB / 0.5258 GB, free: 8.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3558, allocations: 0 / 0.5258 GB, free: 8.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.3559, allocations: 0.6562 kB / 0.5258 GB, free: 8.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.3559, allocations: 0 / 0.5258 GB, free: 8.75 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.001744/0.3576, allocations: 0.582 MB / 0.5263 GB, free: 8.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3576, allocations: 11.11 kB / 0.5263 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.075e-05/0.3577, allocations: 23.11 kB / 0.5264 GB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008216/0.3585, allocations: 302 kB / 0.5267 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.3586, allocations: 5.094 kB / 0.5267 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/0.3586, allocations: 16.3 kB / 0.5267 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.3589, allocations: 161.4 kB / 0.5268 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.3589, allocations: 0 / 0.5268 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.3589, allocations: 5.625 kB / 0.5268 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.359, allocations: 2.656 kB / 0.5268 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.3593, allocations: 154.8 kB / 0.527 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3603, allocations: 0.5074 MB / 0.5275 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.3606, allocations: 192.4 kB / 0.5277 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.3608, allocations: 103.2 kB / 0.5278 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.3608, allocations: 9.266 kB / 0.5278 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.535e-05/0.3608, allocations: 37.47 kB / 0.5278 GB, free: 7.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.202e-06/0.3608, allocations: 4 kB / 0.5278 GB, free: 7.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001348/0.3622, allocations: 481.6 kB / 0.5283 GB, free: 7.438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.224e-05/0.3622, allocations: 57.59 kB / 0.5283 GB, free: 7.371 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007522/0.3629, allocations: 337.5 kB / 0.5286 GB, free: 7.219 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.363, allocations: 31.59 kB / 0.5287 GB, free: 7.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.355e-05/0.363, allocations: 134.4 kB / 0.5288 GB, free: 7.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.748e-05/0.3631, allocations: 79.56 kB / 0.5289 GB, free: 7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.936e-05/0.3632, allocations: 35.58 kB / 0.5289 GB, free: 6.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.3632, allocations: 336.8 kB / 0.5292 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.3634, allocations: 84.34 kB / 0.5293 GB, free: 6.629 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.3635, allocations: 93.73 kB / 0.5294 GB, free: 6.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/0.3656, allocations: 0.6146 MB / 0.53 GB, free: 6.449 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3656, allocations: 1.344 kB / 0.53 GB, free: 6.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006634/0.3662, allocations: 369.2 kB / 0.5304 GB, free: 6.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3663, allocations: 6.094 kB / 0.5304 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3663, allocations: 0 / 0.5304 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.3665, allocations: 63.8 kB / 0.5304 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.3667, allocations: 42.11 kB / 0.5305 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.3681, allocations: 1.515 MB / 0.5319 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.3685, allocations: 62.8 kB / 0.532 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.851e-05/0.3685, allocations: 5.469 kB / 0.532 GB, free: 4.914 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.000152/0.3687, allocations: 161.8 kB / 0.5322 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.458e-05/0.3687, allocations: 21.86 kB / 0.5322 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.213e-05/0.3688, allocations: 40.05 kB / 0.5322 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3688, allocations: 2.438 kB / 0.5322 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3688, allocations: 1.031 kB / 0.5322 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3688, allocations: 9.5 kB / 0.5322 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.3691, allocations: 226.7 kB / 0.5325 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3691, allocations: 4 kB / 0.5325 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.3693, allocations: 26.38 kB / 0.5325 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.3695, allocations: 70.48 kB / 0.5325 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.3696, allocations: 6.047 kB / 0.5326 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.3707, allocations: 1.515 MB / 0.534 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3707, allocations: 3.938 kB / 0.534 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008029/0.3715, allocations: 0.5241 MB / 0.5346 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.454e-05/0.3715, allocations: 25.05 kB / 0.5346 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.768e-05/0.3716, allocations: 8.375 kB / 0.5346 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003784/0.372, allocations: 49.47 kB / 0.5346 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.372, allocations: 11.81 kB / 0.5346 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.372, allocations: 5.125 kB / 0.5346 GB, free: 2.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006266/0.3727, allocations: 267.2 kB / 0.5349 GB, free: 2.773 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3727, allocations: 5.25 kB / 0.5349 GB, free: 2.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.373, allocations: 48.72 kB / 0.535 GB, free: 2.762 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.0001026/0.3731, allocations: 109.8 kB / 0.5351 GB, free: 2.664 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006334/0.3737, allocations: 356 kB / 0.5354 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3737, allocations: 0 / 0.5354 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000328/0.374, allocations: 243.3 kB / 0.5356 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.3744, allocations: 37.95 kB / 0.5357 GB, free: 2.312 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008689/0.3753, allocations: 0.5466 MB / 0.5362 GB, free: 1.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001469/0.3754, allocations: 153.9 kB / 0.5363 GB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.3756, allocations: 58.16 kB / 0.5364 GB, free: 1.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.3756, allocations: 18.41 kB / 0.5364 GB, free: 1.895 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3756, allocations: 0 / 0.5364 GB, free: 1.895 MB / 382.1 MB Notification: Performance of Templates: time 0.007247/0.3829, allocations: 3.318 MB / 0.5397 GB, free: 1.176 MB / 382.1 MB " [Timeout remaining time 660] 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 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.83485382598883] Failed to read output from testmodel.py, exit status != 0: 0.391178485006094 0.405012415 0.046055775 Calling exit ...