Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.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.00137/0.00137, allocations: 100.3 kB / 20.46 MB, free: 1.367 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.001504/0.001504, allocations: 215.1 kB / 23.76 MB, free: 4.527 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.44/1.44, allocations: 230.7 MB / 257.5 MB, free: 7.789 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.1109/0.1109, allocations: 24.04 MB / 338 MB, free: 11.32 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.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") [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.002271/0.002271, allocations: 65.92 kB / 475.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3004, allocations: 59.58 MB / 0.5221 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002939/0.3033, allocations: 1.792 MB / 0.5239 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.3055, allocations: 1.828 MB / 0.5257 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.3057, allocations: 14.66 kB / 0.5257 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.3062, allocations: 173.3 kB / 0.5258 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005749/0.3068, allocations: 223.8 kB / 0.5261 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006895/0.3075, allocations: 435.2 kB / 0.5265 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.3088, allocations: 1.206 MB / 0.5276 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.309, allocations: 107.6 kB / 0.5277 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004343/0.3094, allocations: 435.6 kB / 0.5282 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004655/0.3099, allocations: 415.8 kB / 0.5286 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.31, allocations: 64.59 kB / 0.5286 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.3102, allocations: 107.3 kB / 0.5287 GB, free: 6.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.3104, allocations: 245.9 kB / 0.529 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001974/0.3106, allocations: 239.8 kB / 0.5292 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007316/0.3113, allocations: 0.7309 MB / 0.5299 GB, free: 5.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3113, allocations: 1.859 kB / 0.5299 GB, free: 5.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3113, allocations: 0 / 0.5299 GB, free: 5.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.3114, allocations: 0 / 0.5299 GB, free: 5.961 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00303/0.3144, allocations: 1.165 MB / 0.531 GB, free: 5.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3144, allocations: 13.98 kB / 0.5311 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.3145, allocations: 80.36 kB / 0.5311 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.3162, allocations: 0.6735 MB / 0.5318 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.3163, allocations: 34.94 kB / 0.5318 GB, free: 4.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.886e-05/0.3164, allocations: 53.06 kB / 0.5319 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007378/0.3171, allocations: 453.1 kB / 0.5323 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.3171, allocations: 0 / 0.5323 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/0.3171, allocations: 16.41 kB / 0.5323 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.3172, allocations: 8.188 kB / 0.5323 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008214/0.318, allocations: 420.7 kB / 0.5327 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.3204, allocations: 1.42 MB / 0.5341 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006807/0.321, allocations: 450.7 kB / 0.5345 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003038/0.3213, allocations: 195.4 kB / 0.5347 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.31e-05/0.3214, allocations: 5.922 kB / 0.5347 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.3214, allocations: 37.16 kB / 0.5348 GB, free: 3.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 1.713e-06/0.3214, allocations: 0 / 0.5348 GB, free: 3.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001121/0.3225, allocations: 0.6211 MB / 0.5354 GB, free: 3.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/0.3225, allocations: 61.66 kB / 0.5354 GB, free: 2.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.3244, allocations: 0.8584 MB / 0.5363 GB, free: 2.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.3244, allocations: 36.55 kB / 0.5363 GB, free: 2.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.3246, allocations: 305.5 kB / 0.5366 GB, free: 2.387 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.3247, allocations: 173.7 kB / 0.5368 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.3249, allocations: 135.9 kB / 0.5369 GB, free: 2.184 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.325, allocations: 386 kB / 0.5373 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006696/0.3257, allocations: 297.7 kB / 0.5375 GB, free: 1.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007205/0.3264, allocations: 413.5 kB / 0.5379 GB, free: 1.527 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004563/0.331, allocations: 1.525 MB / 0.5394 GB, free: 1.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.331, allocations: 2 kB / 0.5394 GB, free: 1.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001708/0.3327, allocations: 0.8312 MB / 0.5402 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.3327, allocations: 10 kB / 0.5403 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3327, allocations: 3.5 kB / 0.5403 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3327, allocations: 6.266 kB / 0.5403 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009271/0.3337, allocations: 200.9 kB / 0.5405 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.3337, allocations: 7.266 kB / 0.5405 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3347, allocations: 177.2 kB / 0.5406 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.3347, allocations: 23.69 kB / 0.5407 GB, free: 0.6133 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0003285/0.3351, allocations: 236.7 kB / 0.5409 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3352, allocations: 63.83 kB / 0.5409 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008623/0.336, allocations: 0.525 MB / 0.5415 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.336, allocations: 8.625 kB / 0.5415 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.336, allocations: 5.062 kB / 0.5415 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.336, allocations: 0 / 0.5415 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006258/0.3367, allocations: 443.8 kB / 0.5419 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3367, allocations: 0 / 0.5419 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00055/0.3372, allocations: 93.95 kB / 0.542 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.3372, allocations: 1.375 kB / 0.542 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.3373, allocations: 17.48 kB / 0.542 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3373, allocations: 1.375 kB / 0.542 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3373, allocations: 1.375 kB / 0.542 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.3385, allocations: 0.8414 MB / 0.5428 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.3387, allocations: 88 kB / 0.5429 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.449e-05/0.3388, allocations: 12.12 kB / 0.5429 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007043/0.3395, allocations: 89.64 kB / 0.543 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.341e-05/0.3396, allocations: 31.05 kB / 0.543 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.3396, allocations: 19.77 kB / 0.5431 GB, free: 15.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001514/0.3411, allocations: 0.64 MB / 0.5437 GB, free: 14.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3411, allocations: 1.219 kB / 0.5437 GB, free: 14.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005108/0.3416, allocations: 120.5 kB / 0.5438 GB, free: 14.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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.000169/0.3418, allocations: 125.5 kB / 0.5439 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.343, allocations: 0.5603 MB / 0.5445 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.343, allocations: 0 / 0.5445 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.3434, allocations: 220.2 kB / 0.5447 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.344, allocations: 103 kB / 0.5448 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.346, allocations: 1.372 MB / 0.5461 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.3464, allocations: 349.9 kB / 0.5464 GB, free: 13.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.3466, allocations: 64.08 kB / 0.5465 GB, free: 13.12 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3466, allocations: 0 / 0.5465 GB, free: 13.12 MB / 398.1 MB Notification: Performance of Templates: time 0.01363/0.3603, allocations: 8.404 MB / 0.5547 GB, free: 8.785 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile [Timeout 660] (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & ./AES_AES.Coursework.Typical_control_structures.Decoupling -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.148552518803626] Failed to read output from testmodel.py, exit status != 0: 0.3691187840886414 0.38277796 0.068391381 Calling exit ...