Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.001872/0.001872, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.002585/0.002585, allocations: 216.9 kB / 23.01 MB, free: 4.609 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.537/1.537, allocations: 230.6 MB / 256.8 MB, free: 8.07 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.1275/0.1275, allocations: 24.12 MB / 337.3 MB, free: 11.49 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.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [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.00318/0.00318, allocations: 72.66 kB / 474.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4187, allocations: 59.6 MB / 0.5216 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002705/0.4214, allocations: 1.783 MB / 0.5234 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.4226, allocations: 0.724 MB / 0.5241 GB, free: 8.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.835e-05/0.4227, allocations: 6.219 kB / 0.5241 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000318/0.423, allocations: 80.55 kB / 0.5242 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.4232, allocations: 80.33 kB / 0.5242 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004835/0.4237, allocations: 165.3 kB / 0.5244 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.4241, allocations: 314.5 kB / 0.5247 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.579e-05/0.4242, allocations: 29.16 kB / 0.5247 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.4244, allocations: 130.7 kB / 0.5249 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.4246, allocations: 163.5 kB / 0.525 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.4246, allocations: 18.78 kB / 0.525 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.4248, allocations: 89.19 kB / 0.5251 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.699e-05/0.4249, allocations: 62.97 kB / 0.5252 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.546e-05/0.4249, allocations: 87.45 kB / 0.5253 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.4252, allocations: 237 kB / 0.5255 GB, free: 8.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4253, allocations: 1.312 kB / 0.5255 GB, free: 8.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4253, allocations: 0 / 0.5255 GB, free: 8.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.4253, allocations: 4 kB / 0.5255 GB, free: 8.121 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.001177/0.4264, allocations: 0.5508 MB / 0.526 GB, free: 7.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.4265, allocations: 10.05 kB / 0.526 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/0.4265, allocations: 28.81 kB / 0.5261 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000572/0.4271, allocations: 263.3 kB / 0.5263 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.4271, allocations: 8.984 kB / 0.5263 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.631e-05/0.4272, allocations: 14.53 kB / 0.5263 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.4274, allocations: 158.7 kB / 0.5265 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.4275, allocations: 1.469 kB / 0.5265 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.4275, allocations: 1.5 kB / 0.5265 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.4275, allocations: 1.438 kB / 0.5265 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.4277, allocations: 141.2 kB / 0.5266 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007743/0.4285, allocations: 473.1 kB / 0.5271 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.4289, allocations: 184.8 kB / 0.5273 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.4291, allocations: 93.75 kB / 0.5273 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.4291, allocations: 3.797 kB / 0.5273 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.4294, allocations: 178.4 kB / 0.5275 GB, free: 6.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.503e-06/0.4294, allocations: 0 / 0.5275 GB, free: 6.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001208/0.4306, allocations: 0.5082 MB / 0.528 GB, free: 6.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.4306, allocations: 86.83 kB / 0.5281 GB, free: 6.582 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005244/0.4311, allocations: 309.6 kB / 0.5284 GB, free: 6.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.4312, allocations: 31.02 kB / 0.5284 GB, free: 6.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.57e-05/0.4312, allocations: 139.3 kB / 0.5286 GB, free: 6.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.348e-05/0.4313, allocations: 67.77 kB / 0.5286 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/0.4313, allocations: 37.91 kB / 0.5287 GB, free: 6.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.287e-05/0.4314, allocations: 336.4 kB / 0.529 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.4315, allocations: 80.91 kB / 0.5291 GB, free: 5.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.4316, allocations: 85.7 kB / 0.5291 GB, free: 5.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.4329, allocations: 0.5766 MB / 0.5297 GB, free: 5.582 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4329, allocations: 0 / 0.5297 GB, free: 5.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006077/0.4335, allocations: 391.1 kB / 0.5301 GB, free: 5.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.596e-05/0.4336, allocations: 40.53 kB / 0.5301 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4336, allocations: 7.875 kB / 0.5301 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/0.4338, allocations: 52.53 kB / 0.5302 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.4339, allocations: 27.81 kB / 0.5302 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.435, allocations: 1.504 MB / 0.5317 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.4353, allocations: 34.17 kB / 0.5317 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.4353, allocations: 9.469 kB / 0.5317 GB, free: 3.969 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.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: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.4355, allocations: 195.9 kB / 0.5319 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.4355, allocations: 24.02 kB / 0.5319 GB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.78e-05/0.4356, allocations: 38.36 kB / 0.5319 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.4356, allocations: 1.156 kB / 0.5319 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4356, allocations: 1.219 kB / 0.532 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.4356, allocations: 0.75 kB / 0.532 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.4358, allocations: 263.2 kB / 0.5322 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4358, allocations: 4.922 kB / 0.5322 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.4359, allocations: 15.34 kB / 0.5322 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001663/0.4361, allocations: 55.14 kB / 0.5323 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.4361, allocations: 13.12 kB / 0.5323 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.4372, allocations: 1.502 MB / 0.5338 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4372, allocations: 0.5156 kB / 0.5338 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000962/0.4382, allocations: 0.5271 MB / 0.5343 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.4382, allocations: 30.91 kB / 0.5343 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/0.4382, allocations: 13 kB / 0.5343 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.4385, allocations: 32.27 kB / 0.5343 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.4386, allocations: 10.48 kB / 0.5344 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-05/0.4386, allocations: 9.438 kB / 0.5344 GB, free: 1.891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004327/0.439, allocations: 244.3 kB / 0.5346 GB, free: 1.781 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.439, allocations: 0 / 0.5346 GB, free: 1.781 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.4394, allocations: 66.56 kB / 0.5347 GB, free: 1.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001776/0.4395, allocations: 134.2 kB / 0.5348 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006461/0.4402, allocations: 406.8 kB / 0.5352 GB, free: 1.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4402, allocations: 4 kB / 0.5352 GB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.4405, allocations: 288.5 kB / 0.5355 GB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.4408, allocations: 33.98 kB / 0.5355 GB, free: 1.195 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007877/0.4416, allocations: 0.5247 MB / 0.536 GB, free: 0.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.4418, allocations: 0.758 MB / 0.5367 GB, free: 172 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.688e-05/0.4419, allocations: 16.48 kB / 0.5368 GB, free: 164 kB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4419, allocations: 0 / 0.5368 GB, free: 164 kB / 382.1 MB Notification: Performance of Templates: time 0.007977/0.4498, allocations: 3.603 MB / 0.5403 GB, free: 15.56 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.321571581065655] Failed to read output from testmodel.py, exit status != 0: 0.4614892771933228 0.473860152 0.045320976000000006 Calling exit ...