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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 105.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 225.6 MB / 247.8 MB, free: 3.73 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09411/0.09411, allocations: 22.68 MB / 325.4 MB, free: 7.902 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 67.83 kB / 457.8 MB, free: 40.95 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.09498, allocations: 58.03 MB / 0.5038 GB, free: 7.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002273/0.09725, allocations: 1.833 MB / 0.5056 GB, free: 5.797 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007906/0.09805, allocations: 0.6001 MB / 0.5062 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.653e-05/0.09813, allocations: 4 kB / 0.5062 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002701/0.0984, allocations: 35.72 kB / 0.5062 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.09853, allocations: 39.72 kB / 0.5062 GB, free: 5.113 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.09875, allocations: 110.5 kB / 0.5063 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.09893, allocations: 219.5 kB / 0.5066 GB, free: 4.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.09904, allocations: 41.55 kB / 0.5066 GB, free: 4.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.565e-05/0.09912, allocations: 91.67 kB / 0.5067 GB, free: 4.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.09925, allocations: 99.62 kB / 0.5068 GB, free: 4.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.09928, allocations: 16 kB / 0.5068 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.145e-05/0.0993, allocations: 20 kB / 0.5068 GB, free: 4.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.375e-05/0.09936, allocations: 55.77 kB / 0.5069 GB, free: 4.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.268e-05/0.09941, allocations: 79.47 kB / 0.5069 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.09957, allocations: 183.2 kB / 0.5071 GB, free: 4.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.09957, allocations: 0 / 0.5071 GB, free: 4.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09957, allocations: 0 / 0.5071 GB, free: 4.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.09958, allocations: 0 / 0.5071 GB, free: 4.215 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.0008319/0.1004, allocations: 0.5299 MB / 0.5076 GB, free: 3.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.1004, allocations: 12.03 kB / 0.5076 GB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.559e-05/0.1005, allocations: 38.75 kB / 0.5077 GB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.1005, allocations: 24.84 kB / 0.5077 GB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.1009, allocations: 276.7 kB / 0.508 GB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.1009, allocations: 12.61 kB / 0.508 GB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.1009, allocations: 12.38 kB / 0.508 GB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.1012, allocations: 170.7 kB / 0.5082 GB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1012, allocations: 8 kB / 0.5082 GB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.1012, allocations: 7.938 kB / 0.5082 GB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.1012, allocations: 4 kB / 0.5082 GB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.1014, allocations: 120.6 kB / 0.5083 GB, free: 2.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007/0.1021, allocations: 0.5361 MB / 0.5088 GB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004463/0.1026, allocations: 174.6 kB / 0.509 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.1027, allocations: 72.81 kB / 0.5091 GB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1027, allocations: 4 kB / 0.5091 GB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/0.1027, allocations: 38.44 kB / 0.5091 GB, free: 2.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.1027, allocations: 0 / 0.5091 GB, free: 2.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001305/0.104, allocations: 0.5266 MB / 0.5096 GB, free: 1.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.104, allocations: 81.11 kB / 0.5097 GB, free: 1.359 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.1043, allocations: 215.2 kB / 0.5099 GB, free: 1.141 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.1043, allocations: 29.7 kB / 0.5099 GB, free: 1.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.831e-05/0.1044, allocations: 124 kB / 0.51 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.59e-05/0.1044, allocations: 43.59 kB / 0.5101 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-05/0.1044, allocations: 37.7 kB / 0.5101 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.837e-05/0.1045, allocations: 330.8 kB / 0.5104 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.1046, allocations: 64.83 kB / 0.5105 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1047, allocations: 90.47 kB / 0.5106 GB, free: 408 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001972/0.1049, allocations: 144 kB / 0.5107 GB, free: 260 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1049, allocations: 0 / 0.5107 GB, free: 260 kB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002574/0.1051, allocations: 185.5 kB / 0.5109 GB, free: 68 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.1052, allocations: 12.06 kB / 0.5109 GB, free: 56 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1052, allocations: 0 / 0.5109 GB, free: 56 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1052, allocations: 3.984 kB / 0.5109 GB, free: 52 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.1054, allocations: 39.92 kB / 0.5109 GB, free: 12 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.1054, allocations: 11.92 kB / 0.511 GB, free: 0 / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1056, allocations: 28.02 kB / 0.511 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.1056, allocations: 4 kB / 0.511 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001567/0.1058, allocations: 152.1 kB / 0.5111 GB, free: 15.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001075/0.1059, allocations: 77.78 kB / 0.5112 GB, free: 15.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001698/0.106, allocations: 121.6 kB / 0.5113 GB, free: 15.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.02e-07/0.106, allocations: 0 / 0.5113 GB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.000254/0.1063, allocations: 177.4 kB / 0.5115 GB, free: 15.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.194e-06/0.1063, allocations: 4 kB / 0.5115 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-06/0.1063, allocations: 0 / 0.5115 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.998e-06/0.1063, allocations: 4 kB / 0.5115 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.1065, allocations: 43.97 kB / 0.5115 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-06/0.1065, allocations: 0 / 0.5115 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.1067, allocations: 23.92 kB / 0.5116 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1067, allocations: 4 kB / 0.5116 GB, free: 15.35 MB / 382.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.0001138/0.1068, allocations: 192.9 kB / 0.5117 GB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.1068, allocations: 15.89 kB / 0.5118 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006606/0.1075, allocations: 283.6 kB / 0.512 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.1075, allocations: 4 kB / 0.512 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1075, allocations: 3.984 kB / 0.512 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1075, allocations: 0 / 0.512 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.1078, allocations: 269.4 kB / 0.5123 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1078, allocations: 0 / 0.5123 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.899e-05/0.1079, allocations: 20 kB / 0.5123 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003208/0.1082, allocations: 84.78 kB / 0.5124 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.1083, allocations: 0 / 0.5124 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.1104, allocations: 1.837 MB / 0.5142 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1104, allocations: 3.938 kB / 0.5142 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007696/0.1112, allocations: 440 kB / 0.5146 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.526e-05/0.1112, allocations: 89.02 kB / 0.5147 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.1113, allocations: 4 kB / 0.5147 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.1115, allocations: 28.02 kB / 0.5147 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.1115, allocations: 7.984 kB / 0.5147 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.1115, allocations: 11.98 kB / 0.5148 GB, free: 11.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002722/0.1118, allocations: 165.1 kB / 0.5149 GB, free: 11.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1118, allocations: 0 / 0.5149 GB, free: 11.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003393/0.1121, allocations: 59.89 kB / 0.515 GB, free: 11.62 MB / 382.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.001125/0.1133, allocations: 0.9748 MB / 0.5159 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004276/0.1137, allocations: 199.9 kB / 0.5161 GB, free: 10.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1137, allocations: 0 / 0.5161 GB, free: 10.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003521/0.1141, allocations: 218.4 kB / 0.5163 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.1144, allocations: 32.89 kB / 0.5163 GB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.1174, allocations: 2.221 MB / 0.5185 GB, free: 7.867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.1177, allocations: 0.7281 MB / 0.5192 GB, free: 7.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.1178, allocations: 37.05 kB / 0.5193 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.77e-05/0.1179, allocations: 51.42 kB / 0.5193 GB, free: 7.023 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1179, allocations: 0 / 0.5193 GB, free: 7.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03871/0.1566, allocations: 4.569 MB / 0.5238 GB, free: 2.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.27, allocations: 6.469 kB / 0.5238 GB, free: 2.578 MB / 382.1 MB " [Timeout remaining time 649] (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 --stepSize=0.3 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.906252434011549] Failed to read output from testmodel.py, exit status != 0: 11.361625638790429 11.38169921 11.279452744 Calling exit ...