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.0009903/0.0009903, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00109/0.00109, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.183/1.183, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.168/0.168, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.91 kB / 380.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2043, allocations: 54.94 MB / 435.8 MB, free: 40 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002619/0.207, allocations: 2.099 MB / 437.9 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009489/0.208, allocations: 0.6849 MB / 438.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.2081, allocations: 6.906 kB / 438.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002638/0.2084, allocations: 28.02 kB / 438.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.2086, allocations: 42.17 kB / 438.7 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.2089, allocations: 155.6 kB / 438.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.2092, allocations: 302.5 kB / 439.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.2094, allocations: 104.4 kB / 439.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.2095, allocations: 109.5 kB / 439.4 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.2096, allocations: 128.3 kB / 439.5 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.32e-05/0.2097, allocations: 16.19 kB / 439.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.439e-05/0.2097, allocations: 14.91 kB / 439.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.908e-05/0.2098, allocations: 63.3 kB / 439.6 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.929e-05/0.2099, allocations: 112.8 kB / 439.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.2101, allocations: 272.6 kB / 439.9 MB, free: 37.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2101, allocations: 3 kB / 440 MB, free: 37.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2101, allocations: 0 / 440 MB, free: 37.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.2101, allocations: 0 / 440 MB, free: 37.39 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.0009939/0.2111, allocations: 0.6081 MB / 440.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2112, allocations: 19.61 kB / 440.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.2112, allocations: 49.66 kB / 440.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.825e-05/0.2113, allocations: 37.72 kB / 440.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.2117, allocations: 310.8 kB / 441 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.2117, allocations: 17.75 kB / 441 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.2117, allocations: 16.78 kB / 441 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.2121, allocations: 255.8 kB / 441.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2121, allocations: 4 kB / 441.3 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.2121, allocations: 11.94 kB / 441.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2121, allocations: 11.62 kB / 441.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.2125, allocations: 178 kB / 441.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009577/0.2135, allocations: 0.7162 MB / 442.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006185/0.2141, allocations: 248.2 kB / 442.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.2143, allocations: 99.67 kB / 442.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.2143, allocations: 2.656 kB / 442.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.447e-05/0.2143, allocations: 37.47 kB / 442.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.853e-06/0.2143, allocations: 0 / 442.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002163/0.2165, allocations: 0.8111 MB / 443.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.2165, allocations: 109 kB / 443.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.2168, allocations: 264.8 kB / 443.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.2169, allocations: 32.7 kB / 443.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.702e-05/0.2169, allocations: 162.9 kB / 443.9 MB, free: 35.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.217, allocations: 60.86 kB / 444 MB, free: 35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.266e-05/0.217, allocations: 47.59 kB / 444 MB, free: 34.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.387e-05/0.2171, allocations: 331.6 kB / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.2173, allocations: 97.08 kB / 444.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.2174, allocations: 138.2 kB / 444.6 MB, free: 34.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.2178, allocations: 208 kB / 444.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2178, allocations: 0 / 444.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003961/0.2182, allocations: 263.5 kB / 445 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.2182, allocations: 9.594 kB / 445 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.2182, allocations: 0 / 445 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.2182, allocations: 13.97 kB / 445.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.2185, allocations: 60.86 kB / 445.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.2185, allocations: 3.156 kB / 445.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.2187, allocations: 34.62 kB / 445.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.2187, allocations: 10.94 kB / 445.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001397/0.2189, allocations: 169.7 kB / 445.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001042/0.219, allocations: 111.2 kB / 445.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001718/0.2192, allocations: 165.5 kB / 445.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.072e-06/0.2192, allocations: 0 / 445.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0002684/0.2195, allocations: 216.1 kB / 445.8 MB, free: 33.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.964e-06/0.2195, allocations: 8.969 kB / 445.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-06/0.2195, allocations: 3.094 kB / 445.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-06/0.2195, allocations: 4.094 kB / 445.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/0.2197, allocations: 50.62 kB / 445.9 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.2197, allocations: 0 / 445.9 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.2199, allocations: 32.02 kB / 445.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.2199, allocations: 12.39 kB / 445.9 MB, free: 33.89 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 6.452e-05/0.22, allocations: 194.8 kB / 446.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/0.2201, allocations: 28.28 kB / 446.1 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008101/0.2209, allocations: 406.2 kB / 446.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2209, allocations: 2.625 kB / 446.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.2209, allocations: 0 / 446.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.2209, allocations: 7.359 kB / 446.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002533/0.2212, allocations: 333.9 kB / 446.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2212, allocations: 0 / 446.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.2213, allocations: 22.28 kB / 446.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004087/0.2217, allocations: 137.6 kB / 447 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.2217, allocations: 11.53 kB / 447 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002236/0.224, allocations: 2.21 MB / 449.2 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.224, allocations: 3.938 kB / 449.3 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009175/0.2249, allocations: 0.5818 MB / 449.8 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.225, allocations: 104.1 kB / 449.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.225, allocations: 2.562 kB / 449.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.2252, allocations: 32.84 kB / 450 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.2253, allocations: 19.17 kB / 450 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.2253, allocations: 6.688 kB / 450 MB, free: 31.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.2255, allocations: 201.5 kB / 450.2 MB, free: 31.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2256, allocations: 3.938 kB / 450.2 MB, free: 31.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00039/0.226, allocations: 87.56 kB / 450.3 MB, free: 30.99 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.001077/0.227, allocations: 1.124 MB / 451.4 MB, free: 30.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000477/0.2275, allocations: 300.6 kB / 451.7 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2275, allocations: 0 / 451.7 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004349/0.228, allocations: 284 kB / 452 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.2283, allocations: 45 kB / 452 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002958/0.2313, allocations: 2.816 MB / 454.8 MB, free: 28.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.2315, allocations: 0.7604 MB / 455.6 MB, free: 27.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.2316, allocations: 51.36 kB / 455.6 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.989e-05/0.2317, allocations: 80.2 kB / 455.7 MB, free: 27.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2317, allocations: 0 / 455.7 MB, free: 27.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.2487, allocations: 5.777 MB / 461.5 MB, free: 26.81 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001405/0.2489, allocations: 237 kB / 461.7 MB, free: 26.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/1.862, allocations: 0 / 461.7 MB, free: 26.56 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)