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.0007939/0.0007939, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0007651/0.0007651, allocations: 165.2 kB / 23.23 MB, free: 1.336 MB / 18.57 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 0.8778/0.8778, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.06163/0.06163, allocations: 18.12 MB / 278.1 MB, free: 11.55 MB / 266.7 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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 415 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2.147e-05, allocations: 2.281 kB / 415 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002209/0.002231, allocations: 1.735 MB / 416.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008787/0.003109, allocations: 0.6778 MB / 417.5 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.9e-05/0.003198, allocations: 2.75 kB / 417.5 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003218/0.00352, allocations: 75.72 kB / 417.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.00369, allocations: 88.97 kB / 417.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.00418, allocations: 190.6 kB / 417.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.004434, allocations: 209.5 kB / 418 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.384e-05/0.004528, allocations: 22.39 kB / 418 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.004638, allocations: 93.31 kB / 418.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001997/0.004838, allocations: 141.4 kB / 418.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.004868, allocations: 12.84 kB / 418.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.00499, allocations: 89.61 kB / 418.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.048e-05/0.00508, allocations: 67.73 kB / 418.4 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.701e-05/0.005147, allocations: 52.02 kB / 418.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.005433, allocations: 256.1 kB / 418.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.005436, allocations: 5.281 kB / 418.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.005437, allocations: 0 / 418.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.005441, allocations: 0 / 418.7 MB, free: 10.69 MB / 330.7 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.0008197/0.006261, allocations: 0.5534 MB / 419.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.006298, allocations: 10.05 kB / 419.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.527e-05/0.006333, allocations: 44.83 kB / 419.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.00638, allocations: 29.89 kB / 419.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.006733, allocations: 250.7 kB / 419.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.006746, allocations: 8.781 kB / 419.6 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.006768, allocations: 6.906 kB / 419.6 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.006982, allocations: 189.3 kB / 419.8 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.006993, allocations: 192 / 419.8 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.007006, allocations: 9.594 kB / 419.8 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.007011, allocations: 2.531 kB / 419.8 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.007205, allocations: 169.5 kB / 420 MB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005091/0.007714, allocations: 446 kB / 420.4 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.008015, allocations: 217.1 kB / 420.6 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.008127, allocations: 128.8 kB / 420.8 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.00814, allocations: 1.25 kB / 420.8 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.008331, allocations: 219.2 kB / 421 MB, free: 9.223 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 9.62e-07/0.008332, allocations: 0 / 421 MB, free: 9.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008248/0.009157, allocations: 0.5641 MB / 421.5 MB, free: 8.969 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.009183, allocations: 90.02 kB / 421.6 MB, free: 8.867 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.009514, allocations: 318.3 kB / 421.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.009528, allocations: 30.89 kB / 422 MB, free: 8.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.319e-05/0.009581, allocations: 136.3 kB / 422.1 MB, free: 8.559 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.422e-05/0.009626, allocations: 64.06 kB / 422.2 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.009672, allocations: 43.67 kB / 422.2 MB, free: 8.477 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.126e-05/0.009714, allocations: 338.6 kB / 422.5 MB, free: 8.152 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.00982, allocations: 113.8 kB / 422.7 MB, free: 8.098 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.881e-05/0.009919, allocations: 118.3 kB / 422.8 MB, free: 8.039 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007641/0.01068, allocations: 0.5889 MB / 423.4 MB, free: 7.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01069, allocations: 0 / 423.4 MB, free: 7.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004209/0.01111, allocations: 430 kB / 423.8 MB, free: 7.582 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.01113, allocations: 40.56 kB / 423.8 MB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.01114, allocations: 0 / 423.8 MB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/0.01129, allocations: 55.98 kB / 423.9 MB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.333e-05/0.01135, allocations: 20.53 kB / 423.9 MB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007428/0.01209, allocations: 1.486 MB / 425.4 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.01223, allocations: 41.69 kB / 425.4 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.01224, allocations: 6.391 kB / 425.4 MB, free: 6.16 MB / 330.7 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.0001347/0.01238, allocations: 205.9 kB / 425.6 MB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.0124, allocations: 25.44 kB / 425.7 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.01243, allocations: 28.91 kB / 425.7 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.01243, allocations: 2.438 kB / 425.7 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.01244, allocations: 3.938 kB / 425.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.01244, allocations: 2.375 kB / 425.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.01259, allocations: 241.9 kB / 425.9 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01259, allocations: 9.469 kB / 425.9 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.127e-05/0.01267, allocations: 14.19 kB / 425.9 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001103/0.01278, allocations: 52.03 kB / 426 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.01279, allocations: 10.25 kB / 426 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006442/0.01344, allocations: 1.49 MB / 427.5 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.01344, allocations: 0.5 kB / 427.5 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005947/0.01403, allocations: 0.5974 MB / 428.1 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.578e-05/0.01406, allocations: 30.44 kB / 428.1 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.01408, allocations: 9.109 kB / 428.1 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.0142, allocations: 27.77 kB / 428.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.845e-05/0.01425, allocations: 19.62 kB / 428.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.01426, allocations: 6.016 kB / 428.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002405/0.0145, allocations: 247.8 kB / 428.4 MB, free: 3.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0145, allocations: 0 / 428.4 MB, free: 3.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002164/0.01472, allocations: 63.22 kB / 428.5 MB, free: 3.902 MB / 330.7 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.000755/0.01548, allocations: 1.174 MB / 429.7 MB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00045/0.01593, allocations: 465.1 kB / 430.1 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.01593, allocations: 0.9062 kB / 430.1 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.01612, allocations: 330.9 kB / 430.4 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.01631, allocations: 27.75 kB / 430.5 MB, free: 2.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.01895, allocations: 3.107 MB / 433.6 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.01906, allocations: 145.4 kB / 433.7 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.115e-05/0.01913, allocations: 32.23 kB / 433.8 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.735e-05/0.0192, allocations: 67.3 kB / 433.8 MB, free: 472 kB / 330.7 MB Notification: Performance of SimCode: time 6.32e-07/0.0192, allocations: 3.938 kB / 433.8 MB, free: 468 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.03953, allocations: 6.215 MB / 440 MB, free: 13.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.194/7.234, allocations: 1.844 kB / 440 MB, free: 13.82 MB / 346.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable_fmu --startTime=0 --stopTime=15 --stepSize=0.03 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.129127319902182] Failed to read output from testmodel.py, exit status != 0: 7.318073878064752 7.325540369 7.3185240689999995 Calling exit ...