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.001011/0.001011, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00831/0.00831, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.448/1.448, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2044/0.2044, allocations: 22.34 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003117, allocations: 8 kB / 383.4 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2494, allocations: 55.98 MB / 439.4 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.001757/0.2512, allocations: 1.745 MB / 441.1 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009553/0.2522, allocations: 0.6704 MB / 441.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.2523, allocations: 3.094 kB / 441.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.2526, allocations: 28.09 kB / 441.8 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.2528, allocations: 37.56 kB / 441.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003307/0.2531, allocations: 166.2 kB / 442 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000297/0.2534, allocations: 300 kB / 442.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.2536, allocations: 109.2 kB / 442.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.2537, allocations: 85.72 kB / 442.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.2539, allocations: 114.8 kB / 442.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.147e-05/0.2539, allocations: 7.875 kB / 442.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.494e-05/0.254, allocations: 7.5 kB / 442.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.345e-05/0.2541, allocations: 60.48 kB / 442.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.099e-05/0.2541, allocations: 118.7 kB / 442.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.2543, allocations: 262.8 kB / 443.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2543, allocations: 2.562 kB / 443.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2543, allocations: 4 kB / 443.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.2544, allocations: 0 / 443.1 MB, free: 37.29 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.00093/0.2553, allocations: 0.5756 MB / 443.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2553, allocations: 12.81 kB / 443.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.862e-05/0.2554, allocations: 51.3 kB / 443.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.492e-05/0.2554, allocations: 35.67 kB / 443.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.2559, allocations: 312.7 kB / 444 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.2559, allocations: 17.72 kB / 444.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.2559, allocations: 20.16 kB / 444.1 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.2563, allocations: 268.5 kB / 444.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2564, allocations: 0 / 444.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.2564, allocations: 11.06 kB / 444.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.2564, allocations: 3.062 kB / 444.4 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000389/0.2568, allocations: 200.2 kB / 444.5 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.2579, allocations: 0.7188 MB / 445.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007259/0.2586, allocations: 279.6 kB / 445.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.2588, allocations: 108.9 kB / 445.6 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.2588, allocations: 3.281 kB / 445.6 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.2589, allocations: 44.64 kB / 445.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.2589, allocations: 0 / 445.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002587/0.2615, allocations: 0.9446 MB / 446.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.2615, allocations: 105.8 kB / 446.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.2619, allocations: 266.4 kB / 447 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.2619, allocations: 36.61 kB / 447 MB, free: 35.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.599e-05/0.262, allocations: 157.6 kB / 447.2 MB, free: 34.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/0.262, allocations: 63.58 kB / 447.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.896e-05/0.2621, allocations: 26.69 kB / 447.3 MB, free: 34.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.575e-05/0.2622, allocations: 331.8 kB / 447.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.2624, allocations: 103.4 kB / 447.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.2626, allocations: 134.3 kB / 447.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004041/0.263, allocations: 227.5 kB / 448.1 MB, free: 34.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.263, allocations: 0 / 448.1 MB, free: 34.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004954/0.2635, allocations: 288.4 kB / 448.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.998e-05/0.2636, allocations: 108.4 kB / 448.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.2636, allocations: 7.406 kB / 448.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.2636, allocations: 7.031 kB / 448.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003166/0.2639, allocations: 65.33 kB / 448.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.2639, allocations: 4 kB / 448.5 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.2642, allocations: 39.02 kB / 448.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.2642, allocations: 9.906 kB / 448.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.563e-06/0.2642, allocations: 4.594 kB / 448.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002629/0.2645, allocations: 176.3 kB / 448.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-06/0.2645, allocations: 3.781 kB / 448.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-06/0.2645, allocations: 4.062 kB / 448.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.2648, allocations: 48.83 kB / 448.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.2648, allocations: 3.344 kB / 448.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.265, allocations: 35.75 kB / 448.8 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.265, allocations: 2.938 kB / 448.8 MB, free: 34 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 0.0001207/0.2651, allocations: 217.9 kB / 449.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.2652, allocations: 23.69 kB / 449.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009966/0.2662, allocations: 462 kB / 449.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2662, allocations: 0 / 449.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.2662, allocations: 9.781 kB / 449.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2662, allocations: 0 / 449.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000317/0.2665, allocations: 330.2 kB / 449.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2665, allocations: 3.234 kB / 449.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.2666, allocations: 15.75 kB / 449.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005071/0.2672, allocations: 168 kB / 450 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.2672, allocations: 3.984 kB / 450.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/0.2698, allocations: 2.319 MB / 452.4 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2698, allocations: 0 / 452.4 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.2709, allocations: 0.6416 MB / 453 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.889e-05/0.271, allocations: 100.5 kB / 453.1 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.095e-05/0.271, allocations: 11.12 kB / 453.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.2713, allocations: 28.64 kB / 453.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.2713, allocations: 18.75 kB / 453.2 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.2714, allocations: 3.25 kB / 453.2 MB, free: 31.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002666/0.2716, allocations: 204.8 kB / 453.4 MB, free: 31.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2716, allocations: 0 / 453.4 MB, free: 31.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000404/0.272, allocations: 86.62 kB / 453.5 MB, free: 31.07 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.001296/0.2733, allocations: 1.186 MB / 454.6 MB, free: 30.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005271/0.2739, allocations: 316.7 kB / 455 MB, free: 30.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2739, allocations: 0 / 455 MB, free: 30.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004827/0.2744, allocations: 289.7 kB / 455.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.2748, allocations: 46.58 kB / 455.3 MB, free: 29.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003409/0.2782, allocations: 2.878 MB / 458.2 MB, free: 28.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.2784, allocations: 0.7602 MB / 458.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.2785, allocations: 44.39 kB / 459 MB, free: 27.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2786, allocations: 75.06 kB / 459 MB, free: 27.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2786, allocations: 3.938 kB / 459 MB, free: 27.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.2959, allocations: 5.678 MB / 464.7 MB, free: 26.96 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001243/0.2961, allocations: 233.7 kB / 464.9 MB, free: 26.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.029/2.325, allocations: 0 / 464.9 MB, free: 26.71 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)