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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009743/0.0009743, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009386/0.0009386, allocations: 195.1 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.179/1.179, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1663/0.1663, allocations: 22.35 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 60.14 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2068, allocations: 54.95 MB / 435.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002026/0.2089, allocations: 1.79 MB / 437 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007947/0.2097, allocations: 0.7125 MB / 437.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.248e-05/0.2097, allocations: 0 / 437.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002287/0.21, allocations: 63.47 kB / 437.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.2101, allocations: 88.17 kB / 437.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.2104, allocations: 134.2 kB / 437.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001743/0.2106, allocations: 246.8 kB / 438.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.843e-05/0.2107, allocations: 35.44 kB / 438.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.691e-05/0.2108, allocations: 107.8 kB / 438.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.2109, allocations: 146 kB / 438.5 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.211, allocations: 7.719 kB / 438.5 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.783e-05/0.2111, allocations: 80.84 kB / 438.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.646e-05/0.2111, allocations: 57.78 kB / 438.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.509e-05/0.2112, allocations: 84.88 kB / 438.7 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.2114, allocations: 227.9 kB / 438.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.2114, allocations: 3.938 kB / 438.9 MB, free: 37.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2114, allocations: 0 / 438.9 MB, free: 37.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.2114, allocations: 0 / 438.9 MB, free: 37.15 MB / 350.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.0009919/0.2124, allocations: 0.6219 MB / 439.5 MB, free: 36.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.2124, allocations: 15.97 kB / 439.6 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.321e-05/0.2125, allocations: 44 kB / 439.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.2125, allocations: 24.78 kB / 439.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004625/0.213, allocations: 315.4 kB / 439.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.213, allocations: 3.188 kB / 439.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.213, allocations: 10.5 kB / 439.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.2133, allocations: 151.9 kB / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.2133, allocations: 0 / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.2133, allocations: 0 / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.2133, allocations: 2.875 kB / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.2135, allocations: 149.3 kB / 440.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005608/0.2141, allocations: 0.495 MB / 440.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.2144, allocations: 206.7 kB / 440.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.2146, allocations: 105.1 kB / 441 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.2146, allocations: 2.562 kB / 441 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001885/0.2148, allocations: 174.8 kB / 441.2 MB, free: 35.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.383e-06/0.2148, allocations: 0 / 441.2 MB, free: 35.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009927/0.2158, allocations: 0.5771 MB / 441.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.289e-05/0.2158, allocations: 83.41 kB / 441.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004147/0.2162, allocations: 316 kB / 442.2 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.2163, allocations: 28.33 kB / 442.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.333e-05/0.2163, allocations: 133.1 kB / 442.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.2164, allocations: 62.39 kB / 442.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.2164, allocations: 40.17 kB / 442.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.985e-05/0.2165, allocations: 335 kB / 442.8 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.2166, allocations: 86.09 kB / 442.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.2167, allocations: 90.36 kB / 442.9 MB, free: 34.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.2178, allocations: 0.5844 MB / 443.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.2178, allocations: 0 / 443.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004921/0.2183, allocations: 391.2 kB / 443.9 MB, free: 34.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.2183, allocations: 37.22 kB / 443.9 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.2184, allocations: 0 / 443.9 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001689/0.2185, allocations: 60.56 kB / 444 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.911e-05/0.2186, allocations: 17.5 kB / 444 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008387/0.2195, allocations: 1.498 MB / 445.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.2197, allocations: 42.3 kB / 445.6 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.2197, allocations: 2.75 kB / 445.6 MB, free: 32.65 MB / 350.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.0001341/0.2199, allocations: 206.7 kB / 445.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.224e-05/0.2199, allocations: 23.22 kB / 445.8 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.493e-05/0.22, allocations: 27.27 kB / 445.8 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.22, allocations: 2.781 kB / 445.8 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.22, allocations: 3.938 kB / 445.8 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.22, allocations: 2.781 kB / 445.8 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.2201, allocations: 291.5 kB / 446.1 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2202, allocations: 4 kB / 446.1 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.2203, allocations: 22.48 kB / 446.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.2204, allocations: 54.8 kB / 446.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.2204, allocations: 2.906 kB / 446.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008045/0.2213, allocations: 1.504 MB / 447.7 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2213, allocations: 2.938 kB / 447.7 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006638/0.2219, allocations: 0.5317 MB / 448.2 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.222, allocations: 101.2 kB / 448.3 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.222, allocations: 4.656 kB / 448.3 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.2223, allocations: 33.66 kB / 448.4 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.212e-05/0.2223, allocations: 10.92 kB / 448.4 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.2223, allocations: 12.91 kB / 448.4 MB, free: 30.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003722/0.2227, allocations: 240.5 kB / 448.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2227, allocations: 0 / 448.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000248/0.223, allocations: 70.62 kB / 448.7 MB, free: 30.3 MB / 350.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.0008441/0.2238, allocations: 1.101 MB / 449.8 MB, free: 29.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000464/0.2243, allocations: 434.3 kB / 450.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2243, allocations: 0 / 450.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.2246, allocations: 321.3 kB / 450.5 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.2248, allocations: 31.98 kB / 450.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.228, allocations: 2.979 MB / 453.5 MB, free: 27.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.2281, allocations: 0.7651 MB / 454.3 MB, free: 26.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.787e-05/0.2282, allocations: 28.48 kB / 454.3 MB, free: 26.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.2283, allocations: 67.75 kB / 454.4 MB, free: 26.49 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2283, allocations: 0 / 454.4 MB, free: 26.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.2418, allocations: 5.011 MB / 459.4 MB, free: 26.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/0.242, allocations: 213.5 kB / 459.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/1.873, allocations: 0 / 459.6 MB, free: 25.76 MB / 350.1 MB (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 --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)