Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.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.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",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.0008174/0.0008175, allocations: 94.83 kB / 15.36 MB, free: 0.7344 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.005007/0.005007, allocations: 176 kB / 16.27 MB, free: 6.684 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.334/1.334, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.213/0.213, allocations: 22.35 MB / 313.8 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2293, allocations: 55.97 MB / 438.7 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.00134/0.2307, allocations: 1.533 MB / 440.2 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007577/0.2315, allocations: 0.6342 MB / 440.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.182e-05/0.2315, allocations: 2.875 kB / 440.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.2317, allocations: 25.19 kB / 440.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.2319, allocations: 39.08 kB / 440.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000212/0.2321, allocations: 108.3 kB / 441 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.2323, allocations: 209.2 kB / 441.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2324, allocations: 47.14 kB / 441.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.2325, allocations: 72.72 kB / 441.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.2326, allocations: 84.36 kB / 441.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.2326, allocations: 5.844 kB / 441.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.843e-05/0.2327, allocations: 5.875 kB / 441.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.043e-05/0.2327, allocations: 49.12 kB / 441.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.643e-05/0.2328, allocations: 93.97 kB / 441.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.2329, allocations: 171.9 kB / 441.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.2329, allocations: 3.938 kB / 441.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2329, allocations: 0 / 441.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.233, allocations: 0 / 441.7 MB, free: 37.44 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0008019/0.2338, allocations: 0.5559 MB / 442.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.2338, allocations: 16.5 kB / 442.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.633e-05/0.2338, allocations: 44.72 kB / 442.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.123e-05/0.2339, allocations: 26.28 kB / 442.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.2342, allocations: 273.3 kB / 442.6 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.2343, allocations: 9.531 kB / 442.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.105e-05/0.2343, allocations: 18.78 kB / 442.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.2346, allocations: 197.5 kB / 442.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.2346, allocations: 0 / 442.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.2347, allocations: 10.75 kB / 442.9 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.2347, allocations: 2.75 kB / 442.9 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002724/0.2349, allocations: 131.9 kB / 443 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006903/0.2356, allocations: 0.5447 MB / 443.6 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.2361, allocations: 186.9 kB / 443.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.2363, allocations: 100.2 kB / 443.8 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.2363, allocations: 2.594 kB / 443.8 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.2365, allocations: 201.2 kB / 444 MB, free: 35.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.2365, allocations: 0 / 444 MB, free: 35.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001455/0.238, allocations: 0.6734 MB / 444.7 MB, free: 35.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.238, allocations: 162.3 kB / 444.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.2383, allocations: 218.2 kB / 445.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.2384, allocations: 32.86 kB / 445.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.964e-05/0.2384, allocations: 120.9 kB / 445.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.938e-05/0.2385, allocations: 51.47 kB / 445.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.2385, allocations: 19.28 kB / 445.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.2385, allocations: 333.4 kB / 445.6 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.2387, allocations: 68.39 kB / 445.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.2388, allocations: 96.84 kB / 445.8 MB, free: 34.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.2399, allocations: 0.5445 MB / 446.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2399, allocations: 0 / 446.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003651/0.2403, allocations: 277.2 kB / 446.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.426e-05/0.2403, allocations: 149.7 kB / 446.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2403, allocations: 4 kB / 446.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2403, allocations: 0 / 446.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.2405, allocations: 36.52 kB / 446.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.2405, allocations: 0 / 446.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.2407, allocations: 46.41 kB / 446.8 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.2407, allocations: 2.906 kB / 446.8 MB, free: 34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.859e-06/0.2407, allocations: 4.875 kB / 446.8 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002651/0.241, allocations: 228.6 kB / 447.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-06/0.241, allocations: 0 / 447.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-06/0.241, allocations: 0 / 447.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.2412, allocations: 34.75 kB / 447.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.643e-06/0.2412, allocations: 0 / 447.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.2413, allocations: 29.23 kB / 447.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.2414, allocations: 9.25 kB / 447.1 MB, free: 33.86 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: 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: 6 ($PRE.TDO.timeNextEv,$PRE.TDO.tdo,TDO.timeNextEv,TDO.tdo,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001379/0.2415, allocations: 258.1 kB / 447.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.2415, allocations: 17.03 kB / 447.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.673e-05/0.2416, allocations: 16.44 kB / 447.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2416, allocations: 3 kB / 447.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2416, allocations: 0 / 447.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2416, allocations: 3.328 kB / 447.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.2418, allocations: 285.8 kB / 447.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2418, allocations: 7.938 kB / 447.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.2419, allocations: 19.2 kB / 447.7 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.2422, allocations: 151.8 kB / 447.9 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.2423, allocations: 6.078 kB / 447.9 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007241/0.243, allocations: 0.8327 MB / 448.7 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.243, allocations: 0 / 448.7 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008058/0.2438, allocations: 0.5248 MB / 449.2 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.433e-05/0.2439, allocations: 101.7 kB / 449.3 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.2439, allocations: 5.438 kB / 449.3 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.2441, allocations: 36.53 kB / 449.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.2442, allocations: 7.922 kB / 449.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2442, allocations: 12 kB / 449.4 MB, free: 32.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002312/0.2444, allocations: 162.9 kB / 449.6 MB, free: 32.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2444, allocations: 0 / 449.6 MB, free: 32.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002835/0.2447, allocations: 61.78 kB / 449.6 MB, free: 32.18 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],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009766/0.2457, allocations: 1.072 MB / 450.7 MB, free: 31.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004921/0.2462, allocations: 484.5 kB / 451.2 MB, free: 31.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2462, allocations: 0 / 451.2 MB, free: 31.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004031/0.2466, allocations: 240.8 kB / 451.4 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.2469, allocations: 28.19 kB / 451.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.2494, allocations: 2.362 MB / 453.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.2495, allocations: 0.7341 MB / 454.5 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.2496, allocations: 35.8 kB / 454.6 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.529e-05/0.2497, allocations: 54.11 kB / 454.6 MB, free: 28.6 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2497, allocations: 0 / 454.6 MB, free: 28.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1535/0.4032, allocations: 4.231 MB / 458.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001616/0.4034, allocations: 236.8 kB / 459.1 MB, free: 28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.249, allocations: 0.9688 kB / 459.1 MB, free: 28 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput.fmu > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)