Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",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.1023/0.1023, allocations: 21.62 MB / 36.57 MB, free: 0.875 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.0009629/0.0009631, allocations: 173.1 kB / 42.83 MB, free: 3.645 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.528/1.528, allocations: 223.2 MB / 272.1 MB, free: 1.41 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.0008551/0.0008551, allocations: 96.62 kB / 328.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003921, allocations: 8 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 55.82 MB / 452.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.4238, allocations: 80.7 MB / 0.5211 GB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4241, allocations: 75.42 kB / 0.5212 GB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007958/0.432, allocations: 2.765 MB / 0.5239 GB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.432, allocations: 0 / 0.5239 GB, free: 12.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.4321, allocations: 3.812 kB / 0.5239 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000742/0.4328, allocations: 481.8 kB / 0.5244 GB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.4329, allocations: 7.469 kB / 0.5244 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.4329, allocations: 45.22 kB / 0.5244 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.433, allocations: 17.91 kB / 0.5244 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.4334, allocations: 250 kB / 0.5247 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.4334, allocations: 11.34 kB / 0.5247 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.4334, allocations: 11.09 kB / 0.5247 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002161/0.4337, allocations: 115.5 kB / 0.5248 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4337, allocations: 0 / 0.5248 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.4337, allocations: 7.516 kB / 0.5248 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.4337, allocations: 7.75 kB / 0.5248 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.4339, allocations: 91.77 kB / 0.5249 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007206/0.4346, allocations: 465.2 kB / 0.5253 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.435, allocations: 166.2 kB / 0.5255 GB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.435, allocations: 3.938 kB / 0.5255 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.435, allocations: 32.5 kB / 0.5255 GB, free: 11.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.804e-06/0.435, allocations: 0 / 0.5255 GB, free: 11.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009413/0.436, allocations: 0.5429 MB / 0.5261 GB, free: 11.24 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.436, allocations: 55.25 kB / 0.5261 GB, free: 11.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.4363, allocations: 181 kB / 0.5263 GB, free: 11.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.4363, allocations: 29.33 kB / 0.5263 GB, free: 11.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.485e-05/0.4363, allocations: 113 kB / 0.5264 GB, free: 10.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.4364, allocations: 55.22 kB / 0.5265 GB, free: 10.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-06/0.4364, allocations: 7.5 kB / 0.5265 GB, free: 10.92 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.514e-05/0.4365, allocations: 333.3 kB / 0.5268 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.557e-05/0.4366, allocations: 49.62 kB / 0.5269 GB, free: 10.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.054e-05/0.4367, allocations: 67.11 kB / 0.5269 GB, free: 10.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.927e-05/0.4368, allocations: 57.97 kB / 0.527 GB, free: 10.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4368, allocations: 3.953 kB / 0.527 GB, free: 10.58 MB / 362.7 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pcmd = Ge1.Pm [ 1.0 , -1.0 ; -1.0 , 1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004511/0.4372, allocations: 383.2 kB / 0.5273 GB, free: 10.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.4372, allocations: 7.719 kB / 0.5274 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.4373, allocations: 0 / 0.5274 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.4374, allocations: 55.16 kB / 0.5274 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.4376, allocations: 36.59 kB / 0.5274 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.4393, allocations: 4.239 MB / 0.5316 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.4395, allocations: 20.61 kB / 0.5316 GB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.4395, allocations: 6.906 kB / 0.5316 GB, free: 6.082 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real 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 (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.4396, allocations: 131 kB / 0.5317 GB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.4397, allocations: 16.47 kB / 0.5317 GB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.4397, allocations: 18.59 kB / 0.5318 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.4397, allocations: 2.562 kB / 0.5318 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4397, allocations: 1.438 kB / 0.5318 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4397, allocations: 11.36 kB / 0.5318 GB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005737/0.4403, allocations: 0.5061 MB / 0.5323 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.4403, allocations: 0 / 0.5323 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.4405, allocations: 26.88 kB / 0.5323 GB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001163/0.4406, allocations: 43.42 kB / 0.5323 GB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.4406, allocations: 3.312 kB / 0.5323 GB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007765/0.4414, allocations: 1.466 MB / 0.5338 GB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.4414, allocations: 0 / 0.5338 GB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.4418, allocations: 329 kB / 0.5341 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-05/0.4418, allocations: 92.86 kB / 0.5342 GB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.4419, allocations: 3.938 kB / 0.5342 GB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.4421, allocations: 19.7 kB / 0.5342 GB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.4421, allocations: 15.58 kB / 0.5342 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.4421, allocations: 0 / 0.5342 GB, free: 3.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003511/0.4425, allocations: 161.2 kB / 0.5344 GB, free: 19.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4425, allocations: 0 / 0.5344 GB, free: 19.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000368/0.4429, allocations: 38.41 kB / 0.5344 GB, free: 19.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (13): * Single equations (assignments): 12 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007299/0.4436, allocations: 0.8732 MB / 0.5353 GB, free: 19.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.4441, allocations: 365.8 kB / 0.5356 GB, free: 18.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4441, allocations: 0 / 0.5356 GB, free: 18.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.4443, allocations: 178.7 kB / 0.5358 GB, free: 18.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.4445, allocations: 19.95 kB / 0.5358 GB, free: 18.68 MB / 378.7 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pcmd = Ge1.Pm [ 1.0 , -1.0 ; -1.0 , 1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00215/0.4467, allocations: 1.657 MB / 0.5374 GB, free: 17.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.447, allocations: 0.7413 MB / 0.5381 GB, free: 16.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.596e-05/0.4471, allocations: 25.09 kB / 0.5382 GB, free: 16.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.109e-05/0.4472, allocations: 42.02 kB / 0.5382 GB, free: 16.76 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4472, allocations: 0 / 0.5382 GB, free: 16.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01527/0.4625, allocations: 3.434 MB / 0.5416 GB, free: 15.15 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/0.4627, allocations: 184.8 kB / 0.5417 GB, free: 14.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/2.094, allocations: 4 kB / 0.5417 GB, free: 14.91 MB / 378.7 MB (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_foo_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)