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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) 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"}) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09955/0.09955, allocations: 21.62 MB / 36.56 MB, free: 1.062 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 183.3 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 272.1 MB, free: 1.73 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008976/0.0008977, allocations: 95.94 kB / 328.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003932, allocations: 12 kB / 397.1 MB, free: 46.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08886/0.08928, allocations: 55.82 MB / 452.9 MB, free: 6.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2943/0.3837, allocations: 80.55 MB / 0.521 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002112/0.3839, allocations: 77.11 kB / 0.5211 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008822/0.3928, allocations: 3.268 MB / 0.5242 GB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3928, allocations: 0 / 0.5242 GB, free: 12.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.3928, allocations: 11.69 kB / 0.5243 GB, free: 12.61 MB / 362.7 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.0007323/0.3936, allocations: 0.4971 MB / 0.5247 GB, free: 12.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3936, allocations: 7.719 kB / 0.5247 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.3937, allocations: 44.91 kB / 0.5248 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.3937, allocations: 19.16 kB / 0.5248 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.3942, allocations: 273.6 kB / 0.5251 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3942, allocations: 17.48 kB / 0.5251 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.3942, allocations: 14.34 kB / 0.5251 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/0.3945, allocations: 164.1 kB / 0.5253 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3945, allocations: 0 / 0.5253 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.3945, allocations: 15.3 kB / 0.5253 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3945, allocations: 0 / 0.5253 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.3948, allocations: 131 kB / 0.5254 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007116/0.3955, allocations: 0.5228 MB / 0.5259 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005024/0.396, allocations: 199.2 kB / 0.5261 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.3961, allocations: 4 kB / 0.5261 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.3961, allocations: 38.34 kB / 0.5261 GB, free: 11.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.3961, allocations: 0 / 0.5261 GB, free: 11.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.00136/0.3975, allocations: 0.5558 MB / 0.5267 GB, free: 11.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.3975, allocations: 84.88 kB / 0.5268 GB, free: 11.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.3978, allocations: 204.5 kB / 0.527 GB, free: 10.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3978, allocations: 25.7 kB / 0.527 GB, free: 10.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.193e-05/0.3979, allocations: 128.7 kB / 0.5271 GB, free: 10.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/0.3979, allocations: 46.19 kB / 0.5271 GB, free: 10.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-06/0.3979, allocations: 0 / 0.5271 GB, free: 10.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.046e-05/0.398, allocations: 328.8 kB / 0.5275 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.3981, allocations: 63.31 kB / 0.5275 GB, free: 10.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.3983, allocations: 88.12 kB / 0.5276 GB, free: 10.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.3984, allocations: 67.92 kB / 0.5277 GB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3984, allocations: 4.031 kB / 0.5277 GB, free: 10.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002961/0.3987, allocations: 206.3 kB / 0.5279 GB, free: 10.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.3988, allocations: 183.1 kB / 0.528 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.3988, allocations: 0 / 0.528 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3988, allocations: 0 / 0.528 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/0.3991, allocations: 49.75 kB / 0.5281 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3991, allocations: 0 / 0.5281 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.3993, allocations: 31.06 kB / 0.5281 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.3993, allocations: 7.656 kB / 0.5281 GB, free: 10.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.143e-06/0.3993, allocations: 9.406 kB / 0.5281 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001742/0.3995, allocations: 126 kB / 0.5283 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-06/0.3995, allocations: 3.953 kB / 0.5283 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-06/0.3995, allocations: 3.844 kB / 0.5283 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.3997, allocations: 33.73 kB / 0.5283 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.3997, allocations: 5.719 kB / 0.5283 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.3999, allocations: 30.94 kB / 0.5283 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.3999, allocations: 0 / 0.5283 GB, free: 10.06 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.4, allocations: 210.8 kB / 0.5285 GB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.4001, allocations: 19.55 kB / 0.5286 GB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000619/0.4007, allocations: 303.8 kB / 0.5288 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4007, allocations: 3.938 kB / 0.5288 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.4007, allocations: 3.984 kB / 0.5289 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4007, allocations: 0 / 0.5289 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002519/0.401, allocations: 271.2 kB / 0.5291 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.401, allocations: 0 / 0.5291 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.312e-05/0.4011, allocations: 16.22 kB / 0.5291 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003548/0.4015, allocations: 93.97 kB / 0.5292 GB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.4015, allocations: 6.25 kB / 0.5292 GB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001599/0.4031, allocations: 1.79 MB / 0.531 GB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4031, allocations: 0 / 0.531 GB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006759/0.4038, allocations: 471.2 kB / 0.5314 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.4038, allocations: 92.7 kB / 0.5315 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.4039, allocations: 11.58 kB / 0.5315 GB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.4041, allocations: 19.58 kB / 0.5315 GB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.4041, allocations: 19.52 kB / 0.5316 GB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.4042, allocations: 0 / 0.5316 GB, free: 7.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002314/0.4044, allocations: 177 kB / 0.5317 GB, free: 7.613 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4044, allocations: 0 / 0.5317 GB, free: 7.613 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003447/0.4048, allocations: 65.59 kB / 0.5318 GB, free: 7.602 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009277/0.4057, allocations: 0.9972 MB / 0.5328 GB, free: 6.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000388/0.4061, allocations: 222.9 kB / 0.533 GB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4061, allocations: 0 / 0.533 GB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.4065, allocations: 213.3 kB / 0.5332 GB, free: 6.668 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.4067, allocations: 27.14 kB / 0.5332 GB, free: 6.656 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.4087, allocations: 1.389 MB / 0.5346 GB, free: 5.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.4088, allocations: 0.7376 MB / 0.5353 GB, free: 5.113 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.4089, allocations: 34.03 kB / 0.5353 GB, free: 5.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.555e-05/0.409, allocations: 53.81 kB / 0.5354 GB, free: 5.082 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.409, allocations: 0 / 0.5354 GB, free: 5.082 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01521/0.4243, allocations: 4.042 MB / 0.5393 GB, free: 3.211 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001395/0.4244, allocations: 198.3 kB / 0.5395 GB, free: 2.973 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.139, allocations: 0 / 0.5395 GB, free: 2.973 MB / 362.7 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/linux/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)