Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",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.001093/0.001093, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 192 kB / 16.53 MB, free: 6.391 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.303/1.303, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1888/0.1888, allocations: 22.34 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 63.89 kB / 381.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2212, allocations: 54.95 MB / 436.6 MB, free: 40.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002421/0.2236, allocations: 1.815 MB / 438.4 MB, free: 38.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007939/0.2244, allocations: 0.596 MB / 439 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.228e-05/0.2245, allocations: 6.781 kB / 439 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.2248, allocations: 24.28 kB / 439 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.2249, allocations: 43.59 kB / 439.1 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.2251, allocations: 108.1 kB / 439.2 MB, free: 38.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.2253, allocations: 216.8 kB / 439.4 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.2254, allocations: 63.48 kB / 439.4 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.738e-05/0.2255, allocations: 77.45 kB / 439.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.2257, allocations: 97.55 kB / 439.6 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.2257, allocations: 22.75 kB / 439.6 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.79e-05/0.2257, allocations: 15.78 kB / 439.6 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.532e-05/0.2258, allocations: 56.59 kB / 439.7 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.525e-05/0.2259, allocations: 83.75 kB / 439.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.226, allocations: 173.8 kB / 440 MB, free: 37.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.226, allocations: 2.75 kB / 440 MB, free: 37.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2261, allocations: 0 / 440 MB, free: 37.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.2261, allocations: 0 / 440 MB, free: 37.86 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.0008375/0.2269, allocations: 0.5172 MB / 440.5 MB, free: 37.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.2269, allocations: 8.781 kB / 440.5 MB, free: 37.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.858e-05/0.227, allocations: 48.88 kB / 440.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/0.227, allocations: 23.62 kB / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.2274, allocations: 271.6 kB / 440.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.2274, allocations: 13.64 kB / 440.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.2275, allocations: 13.09 kB / 440.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.2277, allocations: 175.1 kB / 441 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2277, allocations: 0 / 441 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.2278, allocations: 4 kB / 441 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.2278, allocations: 2.812 kB / 441 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002338/0.228, allocations: 118.6 kB / 441.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007238/0.2287, allocations: 0.5447 MB / 441.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004826/0.2292, allocations: 178.5 kB / 441.9 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.2294, allocations: 68.88 kB / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2294, allocations: 2.781 kB / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.2294, allocations: 42.5 kB / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.2294, allocations: 0 / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001468/0.2309, allocations: 0.5285 MB / 442.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.2309, allocations: 81.05 kB / 442.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.2312, allocations: 214 kB / 442.8 MB, free: 36.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.2313, allocations: 25.7 kB / 442.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.432e-05/0.2313, allocations: 134.9 kB / 442.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.2313, allocations: 44.25 kB / 443 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.324e-05/0.2314, allocations: 31.58 kB / 443 MB, free: 35.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.491e-05/0.2315, allocations: 334.8 kB / 443.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2316, allocations: 66.33 kB / 443.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.2317, allocations: 83.92 kB / 443.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.232, allocations: 146.6 kB / 443.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.232, allocations: 0 / 443.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003026/0.2323, allocations: 194.8 kB / 443.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.2323, allocations: 5.5 kB / 443.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2323, allocations: 3.938 kB / 443.8 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.2323, allocations: 7.312 kB / 443.8 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.2326, allocations: 42.16 kB / 443.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.2326, allocations: 3 kB / 443.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/0.2328, allocations: 34.08 kB / 443.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.2328, allocations: 2.938 kB / 443.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001105/0.2329, allocations: 146.3 kB / 444.1 MB, free: 35.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.027e-05/0.233, allocations: 76.86 kB / 444.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001399/0.2331, allocations: 120.8 kB / 444.3 MB, free: 35.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.11e-07/0.2331, allocations: 3.938 kB / 444.3 MB, free: 35.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002032/0.2334, allocations: 168.2 kB / 444.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.101e-06/0.2334, allocations: 5.875 kB / 444.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-06/0.2334, allocations: 0 / 444.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-06/0.2334, allocations: 3.938 kB / 444.4 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.2336, allocations: 39.27 kB / 444.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.2336, allocations: 2.875 kB / 444.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.2338, allocations: 23.02 kB / 444.5 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.2338, allocations: 5.625 kB / 444.5 MB, free: 34.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 5.647e-05/0.2339, allocations: 191.9 kB / 444.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.891e-05/0.2339, allocations: 13.38 kB / 444.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006143/0.2345, allocations: 286.7 kB / 445 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.2345, allocations: 2.688 kB / 445 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2345, allocations: 0 / 445 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2345, allocations: 7.281 kB / 445 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.2348, allocations: 276.8 kB / 445.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2348, allocations: 3.938 kB / 445.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.518e-05/0.2349, allocations: 11.12 kB / 445.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003023/0.2352, allocations: 92.52 kB / 445.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.2352, allocations: 0 / 445.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/0.2368, allocations: 1.834 MB / 447.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2368, allocations: 3.938 kB / 447.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006887/0.2375, allocations: 441.5 kB / 447.6 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.322e-05/0.2376, allocations: 93.89 kB / 447.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.2376, allocations: 6.75 kB / 447.7 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.2378, allocations: 21.23 kB / 447.8 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.2379, allocations: 20.64 kB / 447.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.2379, allocations: 2.531 kB / 447.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.2381, allocations: 167.5 kB / 447.9 MB, free: 32.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2381, allocations: 0 / 447.9 MB, free: 32.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.2385, allocations: 54.41 kB / 448 MB, free: 32.28 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * 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.0008703/0.2394, allocations: 0.9697 MB / 449 MB, free: 31.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003996/0.2398, allocations: 221 kB / 449.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2398, allocations: 0 / 449.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.2401, allocations: 210.5 kB / 449.4 MB, free: 31.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.2405, allocations: 39.88 kB / 449.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.243, allocations: 2.209 MB / 451.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.2431, allocations: 0.7267 MB / 452.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.2432, allocations: 36.5 kB / 452.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.546e-05/0.2433, allocations: 54.06 kB / 452.5 MB, free: 29.01 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2433, allocations: 0 / 452.5 MB, free: 29.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0683/0.3116, allocations: 4.441 MB / 456.9 MB, free: 28.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.6, allocations: 12.08 kB / 456.9 MB, free: 28.48 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_below_limit_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_below_limit.fmu > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)