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.001175/0.001175, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.001168/0.001168, allocations: 192.4 kB / 16.25 MB, free: 6.629 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.193/1.193, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1727/0.1727, allocations: 22.34 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 63.89 kB / 381.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2042, allocations: 54.94 MB / 436 MB, free: 40.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002112/0.2063, allocations: 1.879 MB / 437.9 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006444/0.207, allocations: 0.5838 MB / 438.5 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.232e-05/0.2071, allocations: 3.125 kB / 438.5 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.2073, allocations: 19.75 kB / 438.5 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.2074, allocations: 37.67 kB / 438.5 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.2076, allocations: 108.1 kB / 438.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.2078, allocations: 215.4 kB / 438.9 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2079, allocations: 57.27 kB / 438.9 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.834e-05/0.208, allocations: 80.55 kB / 439 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.2081, allocations: 99.23 kB / 439.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.2081, allocations: 16.81 kB / 439.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.114e-05/0.2082, allocations: 16.72 kB / 439.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.994e-05/0.2082, allocations: 51.59 kB / 439.2 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.979e-05/0.2083, allocations: 87.47 kB / 439.3 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.2084, allocations: 173.3 kB / 439.4 MB, free: 37.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2084, allocations: 0 / 439.4 MB, free: 37.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2084, allocations: 0 / 439.4 MB, free: 37.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2084, allocations: 3.938 kB / 439.4 MB, free: 37.84 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.0007653/0.2092, allocations: 0.5198 MB / 440 MB, free: 37.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.2092, allocations: 9.906 kB / 440 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.28e-05/0.2093, allocations: 41.02 kB / 440 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.869e-05/0.2093, allocations: 24.28 kB / 440 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.2096, allocations: 277.5 kB / 440.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.2097, allocations: 10.33 kB / 440.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.2097, allocations: 21.31 kB / 440.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.2099, allocations: 164.6 kB / 440.5 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.21, allocations: 3.141 kB / 440.5 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.21, allocations: 4 kB / 440.5 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.21, allocations: 9.406 kB / 440.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002099/0.2102, allocations: 119.4 kB / 440.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006524/0.2109, allocations: 0.5383 MB / 441.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.2113, allocations: 184.2 kB / 441.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.2114, allocations: 68.39 kB / 441.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.2115, allocations: 7.562 kB / 441.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.264e-05/0.2115, allocations: 38.44 kB / 441.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.2115, allocations: 0 / 441.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001301/0.2128, allocations: 0.5356 MB / 442 MB, free: 36.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.2128, allocations: 77.11 kB / 442.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.2131, allocations: 217.6 kB / 442.3 MB, free: 35.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2131, allocations: 29.7 kB / 442.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.2132, allocations: 130.4 kB / 442.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.2132, allocations: 48.05 kB / 442.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.2132, allocations: 33.44 kB / 442.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.743e-05/0.2133, allocations: 328.6 kB / 442.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.2134, allocations: 65.36 kB / 442.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.2135, allocations: 95.58 kB / 443 MB, free: 35.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.2137, allocations: 141.4 kB / 443.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.2137, allocations: 0 / 443.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002713/0.214, allocations: 189.5 kB / 443.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.214, allocations: 7.109 kB / 443.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.214, allocations: 7.406 kB / 443.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.699e-06/0.2141, allocations: 0 / 443.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.2143, allocations: 42.91 kB / 443.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2143, allocations: 0 / 443.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.2145, allocations: 35.66 kB / 443.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.2145, allocations: 3.281 kB / 443.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001015/0.2146, allocations: 147.4 kB / 443.5 MB, free: 35.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.26e-05/0.2147, allocations: 79.95 kB / 443.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001262/0.2148, allocations: 123.1 kB / 443.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.92e-07/0.2148, allocations: 0 / 443.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0001857/0.215, allocations: 165.6 kB / 443.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.12e-06/0.215, allocations: 11.69 kB / 443.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-06/0.215, allocations: 2.906 kB / 443.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-06/0.215, allocations: 0 / 443.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.2152, allocations: 38.08 kB / 444 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-06/0.2152, allocations: 2.969 kB / 444 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.2154, allocations: 23.3 kB / 444 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.2154, allocations: 5.812 kB / 444 MB, free: 34.89 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.415e-05/0.2154, allocations: 190.9 kB / 444.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.521e-05/0.2155, allocations: 16.78 kB / 444.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005411/0.216, allocations: 286.2 kB / 444.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.216, allocations: 3.5 kB / 444.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2161, allocations: 0 / 444.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2161, allocations: 0 / 444.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/0.2163, allocations: 275.3 kB / 444.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2163, allocations: 0 / 444.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.768e-05/0.2164, allocations: 15.48 kB / 444.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002784/0.2166, allocations: 88.34 kB / 444.8 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.2167, allocations: 6.938 kB / 444.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.2181, allocations: 1.827 MB / 446.7 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2181, allocations: 3.938 kB / 446.7 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.2187, allocations: 432.4 kB / 447.1 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.2187, allocations: 93.92 kB / 447.2 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.2188, allocations: 6.906 kB / 447.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.219, allocations: 22.03 kB / 447.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.219, allocations: 13.34 kB / 447.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-06/0.219, allocations: 6.609 kB / 447.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.2193, allocations: 173.5 kB / 447.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2193, allocations: 0 / 447.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.2196, allocations: 58.09 kB / 447.5 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.00075/0.2203, allocations: 0.9761 MB / 448.5 MB, free: 31.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003418/0.2207, allocations: 217.8 kB / 448.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2207, allocations: 0 / 448.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.221, allocations: 209 kB / 448.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.2213, allocations: 31.83 kB / 448.9 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.2235, allocations: 2.271 MB / 451.2 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.2236, allocations: 0.7238 MB / 451.9 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.208e-05/0.2237, allocations: 36.17 kB / 451.9 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.2238, allocations: 53.88 kB / 452 MB, free: 28.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2238, allocations: 0 / 452 MB, free: 28.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01481/0.2386, allocations: 4.311 MB / 456.3 MB, free: 28.54 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.2388, allocations: 229.4 kB / 456.5 MB, free: 28.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.605/1.844, allocations: 0 / 456.5 MB, free: 28.29 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)