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.007332/0.007332, allocations: 103.6 kB / 15.74 MB, free: 6.043 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.001771/0.001771, allocations: 202.5 kB / 16.68 MB, free: 5.965 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2024/0.2024, allocations: 22.37 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 75.48 kB / 437.3 MB, free: 33.56 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08889, allocations: 54.96 MB / 492.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002562/0.0915, allocations: 1.827 MB / 494.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009882/0.0925, allocations: 0.5923 MB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.136e-05/0.09259, allocations: 4 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.09286, allocations: 39.72 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.09301, allocations: 35.72 kB / 494.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.09329, allocations: 109.7 kB / 494.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.09357, allocations: 215.6 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.09371, allocations: 53.53 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.09384, allocations: 91.62 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.09401, allocations: 95.64 kB / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.761e-05/0.09406, allocations: 16 kB / 495.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.354e-05/0.0941, allocations: 16 kB / 495.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.382e-05/0.09419, allocations: 55.83 kB / 495.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.136e-05/0.09429, allocations: 83.45 kB / 495.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.09452, allocations: 175.3 kB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.09453, allocations: 4 kB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09454, allocations: 0 / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.09455, allocations: 0 / 495.6 MB, free: 13.58 MB / 366.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.001004/0.09556, allocations: 0.5376 MB / 496.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.0956, allocations: 8.031 kB / 496.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.994e-05/0.09565, allocations: 42.75 kB / 496.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.406e-05/0.0957, allocations: 16.84 kB / 496.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.09618, allocations: 280.7 kB / 496.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.0962, allocations: 8.609 kB / 496.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/0.09625, allocations: 12.38 kB / 496.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.09656, allocations: 169.5 kB / 496.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.09658, allocations: 4 kB / 496.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.0966, allocations: 0 / 496.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.09661, allocations: 4 kB / 496.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.0969, allocations: 120.6 kB / 496.8 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008985/0.0978, allocations: 0.5361 MB / 497.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.09836, allocations: 194.6 kB / 497.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.09852, allocations: 72.75 kB / 497.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.09855, allocations: 0 / 497.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.09858, allocations: 38.72 kB / 497.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 6.081e-06/0.09859, allocations: 0 / 497.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001588/0.1002, allocations: 0.5302 MB / 498.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.1002, allocations: 85.11 kB / 498.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.1006, allocations: 207.2 kB / 498.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1006, allocations: 33.7 kB / 498.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.1007, allocations: 128 kB / 498.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.416e-05/0.1008, allocations: 51.58 kB / 498.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.167e-05/0.1008, allocations: 29.72 kB / 498.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.101, allocations: 334.8 kB / 499.1 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.1011, allocations: 64.83 kB / 499.1 MB, free: 9.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.1013, allocations: 86.53 kB / 499.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.1016, allocations: 148 kB / 499.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1016, allocations: 4.031 kB / 499.3 MB, free: 9.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003466/0.102, allocations: 189.5 kB / 499.5 MB, free: 9.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.102, allocations: 8 kB / 499.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.102, allocations: 0 / 499.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.102, allocations: 0 / 499.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.1022, allocations: 43.91 kB / 499.6 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1023, allocations: 0 / 499.6 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.1024, allocations: 35.89 kB / 499.6 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.1025, allocations: 3.984 kB / 499.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000154/0.1026, allocations: 148.1 kB / 499.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001003/0.1027, allocations: 70.55 kB / 499.8 MB, free: 9.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001793/0.1029, allocations: 128.2 kB / 500 MB, free: 8.961 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.91e-07/0.1029, allocations: 0 / 500 MB, free: 8.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002537/0.1032, allocations: 169.5 kB / 0.4884 GB, free: 8.789 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-06/0.1032, allocations: 8.062 kB / 0.4884 GB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.1032, allocations: 4 kB / 0.4884 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.509e-06/0.1032, allocations: 4 kB / 0.4884 GB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.1034, allocations: 39.91 kB / 0.4885 GB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-06/0.1034, allocations: 0 / 0.4885 GB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.1036, allocations: 23.92 kB / 0.4885 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.1036, allocations: 7.984 kB / 0.4885 GB, free: 8.703 MB / 366.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 0.0001134/0.1038, allocations: 192.9 kB / 0.4887 GB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.059e-05/0.1038, allocations: 15.91 kB / 0.4887 GB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006843/0.1045, allocations: 279.6 kB / 0.489 GB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1045, allocations: 4 kB / 0.489 GB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/0.1045, allocations: 3.984 kB / 0.489 GB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1045, allocations: 7.938 kB / 0.489 GB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.1048, allocations: 269.4 kB / 0.4892 GB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1048, allocations: 0 / 0.4892 GB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.657e-05/0.1049, allocations: 15.98 kB / 0.4892 GB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000345/0.1053, allocations: 84.73 kB / 0.4893 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.1053, allocations: 7.984 kB / 0.4893 GB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/0.1075, allocations: 1.833 MB / 0.4911 GB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1075, allocations: 8 kB / 0.4911 GB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008045/0.1083, allocations: 438.2 kB / 0.4915 GB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.195e-05/0.1084, allocations: 93.02 kB / 0.4916 GB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.1084, allocations: 8.031 kB / 0.4916 GB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.1086, allocations: 15.98 kB / 0.4917 GB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.1087, allocations: 19.97 kB / 0.4917 GB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.096e-06/0.1087, allocations: 0 / 0.4917 GB, free: 5.191 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002845/0.109, allocations: 169.1 kB / 0.4918 GB, free: 5.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.109, allocations: 4 kB / 0.4918 GB, free: 5.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003447/0.1094, allocations: 55.89 kB / 0.4919 GB, free: 4.969 MB / 366.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.001142/0.1105, allocations: 0.9706 MB / 0.4928 GB, free: 3.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004374/0.111, allocations: 210.3 kB / 0.493 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.111, allocations: 0 / 0.493 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.1113, allocations: 225.2 kB / 0.4933 GB, free: 3.535 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.1117, allocations: 35.86 kB / 0.4933 GB, free: 3.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.1147, allocations: 2.204 MB / 0.4954 GB, free: 1.211 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.115, allocations: 0.7359 MB / 0.4962 GB, free: 460 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.1151, allocations: 29.06 kB / 0.4962 GB, free: 424 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.318e-05/0.1152, allocations: 55.41 kB / 0.4962 GB, free: 372 kB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1152, allocations: 0 / 0.4962 GB, free: 372 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03636/0.1516, allocations: 4.537 MB / 0.5007 GB, free: 11.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.53, allocations: 6.078 kB / 0.5007 GB, free: 11.95 MB / 382.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)