Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",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.0012/0.0012, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001223/0.001223, allocations: 192 kB / 16.25 MB, free: 6.637 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.175/1.175, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1643/0.1643, allocations: 22.35 MB / 312.4 MB, free: 12.64 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 67.89 kB / 381.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2055, allocations: 54.93 MB / 436 MB, free: 40.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002294/0.2078, allocations: 2.11 MB / 438.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007287/0.2085, allocations: 0.6754 MB / 438.8 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.068e-05/0.2086, allocations: 6.469 kB / 438.8 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002272/0.2089, allocations: 27.55 kB / 438.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.209, allocations: 42.16 kB / 438.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.2093, allocations: 160.9 kB / 439.1 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.2095, allocations: 328.6 kB / 439.4 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.2097, allocations: 102.7 kB / 439.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.896e-05/0.2098, allocations: 123.6 kB / 439.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.2099, allocations: 134.6 kB / 439.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.621e-05/0.21, allocations: 26.84 kB / 439.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.136e-05/0.21, allocations: 25.59 kB / 439.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.308e-05/0.2101, allocations: 87.67 kB / 439.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.875e-05/0.2102, allocations: 118.3 kB / 440 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.2103, allocations: 290.8 kB / 440.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2103, allocations: 4 kB / 440.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2103, allocations: 0 / 440.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.2104, allocations: 0 / 440.3 MB, free: 37.43 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0008934/0.2112, allocations: 0.6149 MB / 440.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.785e-05/0.2113, allocations: 10.03 kB / 440.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.2113, allocations: 55.41 kB / 440.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.2114, allocations: 30.25 kB / 441 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.2118, allocations: 308.7 kB / 441.3 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.2118, allocations: 22.44 kB / 441.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/0.2118, allocations: 23.7 kB / 441.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.2122, allocations: 260.7 kB / 441.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2122, allocations: 0 / 441.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.2122, allocations: 10.97 kB / 441.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2122, allocations: 5.219 kB / 441.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.2126, allocations: 182.3 kB / 441.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008681/0.2134, allocations: 0.7083 MB / 442.5 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006049/0.214, allocations: 252.1 kB / 442.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2142, allocations: 100.3 kB / 442.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.2142, allocations: 6.844 kB / 442.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.451e-05/0.2143, allocations: 41.22 kB / 442.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.242e-06/0.2143, allocations: 0 / 442.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002118/0.2164, allocations: 0.8077 MB / 443.7 MB, free: 35.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.2164, allocations: 105.7 kB / 443.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.2167, allocations: 266.3 kB / 444 MB, free: 35.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.2168, allocations: 33.64 kB / 444.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.2168, allocations: 164.5 kB / 444.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.162e-05/0.2169, allocations: 63.33 kB / 444.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.2169, allocations: 46.52 kB / 444.3 MB, free: 35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.988e-05/0.217, allocations: 331.2 kB / 444.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.2171, allocations: 96.47 kB / 444.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.2173, allocations: 135.6 kB / 444.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.2176, allocations: 203.2 kB / 445.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2176, allocations: 0 / 445.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003794/0.218, allocations: 269.2 kB / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/0.218, allocations: 5.781 kB / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.218, allocations: 2.844 kB / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.2181, allocations: 3.938 kB / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.2183, allocations: 62.33 kB / 445.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2184, allocations: 7.266 kB / 445.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.2186, allocations: 41.41 kB / 445.5 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.2186, allocations: 5.031 kB / 445.5 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001322/0.2187, allocations: 174.3 kB / 445.7 MB, free: 34.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.819e-05/0.2188, allocations: 108 kB / 445.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001692/0.219, allocations: 164.8 kB / 445.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.72e-07/0.219, allocations: 0 / 445.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0002425/0.2193, allocations: 217.5 kB / 446.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-06/0.2193, allocations: 8.562 kB / 446.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-06/0.2193, allocations: 6.844 kB / 446.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-06/0.2193, allocations: 0 / 446.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.2195, allocations: 57.83 kB / 446.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.696e-06/0.2195, allocations: 2.375 kB / 446.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.2197, allocations: 31.3 kB / 446.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.2197, allocations: 9.562 kB / 446.2 MB, free: 33.92 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.82e-05/0.2198, allocations: 194.4 kB / 446.4 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/0.2198, allocations: 31.62 kB / 446.5 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008063/0.2207, allocations: 409.7 kB / 446.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2207, allocations: 2.5 kB / 446.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2207, allocations: 0 / 446.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2207, allocations: 0 / 446.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.2209, allocations: 334.7 kB / 447.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.2209, allocations: 4 kB / 447.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.221, allocations: 17.86 kB / 447.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003928/0.2214, allocations: 135.3 kB / 447.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.2215, allocations: 6.625 kB / 447.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002324/0.2238, allocations: 2.434 MB / 449.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2238, allocations: 6.156 kB / 449.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009211/0.2247, allocations: 0.5794 MB / 450.4 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.2248, allocations: 103.2 kB / 450.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.2248, allocations: 6.031 kB / 450.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.2251, allocations: 25.14 kB / 450.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.488e-05/0.2251, allocations: 18.75 kB / 450.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.2251, allocations: 6.719 kB / 450.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.2254, allocations: 201.2 kB / 450.7 MB, free: 30.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2254, allocations: 2.469 kB / 450.7 MB, free: 30.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003743/0.2258, allocations: 91.28 kB / 450.8 MB, free: 30.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001062/0.2268, allocations: 1.127 MB / 451.9 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004726/0.2273, allocations: 308.1 kB / 452.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2273, allocations: 0 / 452.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00042/0.2277, allocations: 285.2 kB / 452.5 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.2281, allocations: 49.28 kB / 452.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.231, allocations: 2.799 MB / 455.4 MB, free: 27.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.2311, allocations: 0.7675 MB / 456.1 MB, free: 27.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.2313, allocations: 40.8 kB / 456.2 MB, free: 27.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.245e-05/0.2314, allocations: 80.2 kB / 456.3 MB, free: 27.15 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2314, allocations: 0 / 456.3 MB, free: 27.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.2489, allocations: 6.013 MB / 462.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001387/0.2491, allocations: 236.7 kB / 462.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/1.936, allocations: 0 / 462.5 MB, free: 26.38 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)