Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.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.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",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.1024/0.1024, allocations: 21.61 MB / 36.56 MB, free: 1.121 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.001099/0.001098, allocations: 183.5 kB / 42.83 MB, free: 3.836 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.34/1.34, allocations: 223.2 MB / 272.1 MB, free: 1.387 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.0008329/0.0008328, allocations: 94.95 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003127, allocations: 8 kB / 395.1 MB, free: 48.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09742, allocations: 55.81 MB / 450.9 MB, free: 8.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3792/0.4767, allocations: 79.86 MB / 0.5183 GB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.477, allocations: 79.73 kB / 0.5184 GB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005008/0.482, allocations: 1.992 MB / 0.5204 GB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.482, allocations: 0 / 0.5204 GB, free: 11.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.482, allocations: 0 / 0.5204 GB, free: 11.36 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004711/0.4825, allocations: 413.7 kB / 0.5208 GB, free: 10.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4825, allocations: 11.59 kB / 0.5208 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.708e-05/0.4826, allocations: 43.73 kB / 0.5208 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.4827, allocations: 15.53 kB / 0.5208 GB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.4829, allocations: 205 kB / 0.521 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.4829, allocations: 7.75 kB / 0.521 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.4829, allocations: 15.09 kB / 0.521 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.4831, allocations: 86.44 kB / 0.5211 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.4831, allocations: 0.875 kB / 0.5211 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.4831, allocations: 8.312 kB / 0.5211 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.4831, allocations: 0 / 0.5211 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.594e-05/0.4832, allocations: 44.17 kB / 0.5212 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005352/0.4838, allocations: 392.6 kB / 0.5216 GB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.484, allocations: 173.5 kB / 0.5217 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.484, allocations: 7.953 kB / 0.5217 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.4841, allocations: 34.5 kB / 0.5218 GB, free: 10.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.4841, allocations: 3.938 kB / 0.5218 GB, free: 10.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006882/0.4848, allocations: 442 kB / 0.5222 GB, free: 9.938 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.352e-05/0.4848, allocations: 51.41 kB / 0.5222 GB, free: 9.875 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.4849, allocations: 148.7 kB / 0.5224 GB, free: 9.777 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.4849, allocations: 29.61 kB / 0.5224 GB, free: 9.746 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.743e-05/0.485, allocations: 111.2 kB / 0.5225 GB, free: 9.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.485, allocations: 44.75 kB / 0.5226 GB, free: 9.621 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-06/0.485, allocations: 6.375 kB / 0.5226 GB, free: 9.621 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.447e-05/0.4851, allocations: 327.2 kB / 0.5229 GB, free: 9.305 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.345e-05/0.4851, allocations: 27.19 kB / 0.5229 GB, free: 9.305 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.428e-05/0.4852, allocations: 66.33 kB / 0.523 GB, free: 9.273 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.384e-05/0.4853, allocations: 39.08 kB / 0.523 GB, free: 9.273 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.4853, allocations: 0 / 0.523 GB, free: 9.273 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004269/0.4857, allocations: 345.5 kB / 0.5233 GB, free: 9.016 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.4857, allocations: 7.875 kB / 0.5233 GB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.4857, allocations: 0 / 0.5233 GB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.4859, allocations: 59.67 kB / 0.5234 GB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.769e-05/0.486, allocations: 24.11 kB / 0.5234 GB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.4878, allocations: 4.24 MB / 0.5276 GB, free: 20.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.647e-05/0.4879, allocations: 7.141 kB / 0.5276 GB, free: 20.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.4879, allocations: 3.906 kB / 0.5276 GB, free: 20.77 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: G.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: 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 (14): * 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: 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.0001121/0.488, allocations: 130.8 kB / 0.5277 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.4881, allocations: 7.719 kB / 0.5277 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.66e-05/0.4881, allocations: 21.72 kB / 0.5277 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.4881, allocations: 3.938 kB / 0.5277 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.4881, allocations: 0 / 0.5277 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4881, allocations: 0 / 0.5277 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/0.4886, allocations: 465.7 kB / 0.5282 GB, free: 20.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4886, allocations: 3.844 kB / 0.5282 GB, free: 20.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.4887, allocations: 21.92 kB / 0.5282 GB, free: 20.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001149/0.4888, allocations: 32.98 kB / 0.5282 GB, free: 20.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.4888, allocations: 10.14 kB / 0.5282 GB, free: 20.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009464/0.4898, allocations: 1.453 MB / 0.5297 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4898, allocations: 0 / 0.5297 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.4901, allocations: 311 kB / 0.5299 GB, free: 18.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-05/0.4902, allocations: 84.86 kB / 0.53 GB, free: 18.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.4902, allocations: 8.625 kB / 0.53 GB, free: 18.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.681e-05/0.4903, allocations: 7.969 kB / 0.53 GB, free: 18.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.09e-05/0.4903, allocations: 7.625 kB / 0.5301 GB, free: 18.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.4903, allocations: 7.375 kB / 0.5301 GB, free: 18.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.904e-05/0.4904, allocations: 118.1 kB / 0.5302 GB, free: 18.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4904, allocations: 0 / 0.5302 GB, free: 18.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003581/0.4908, allocations: 30.78 kB / 0.5302 GB, free: 18.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.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 (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.0006471/0.4914, allocations: 0.9886 MB / 0.5312 GB, free: 17.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003631/0.4918, allocations: 314.5 kB / 0.5315 GB, free: 17.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4918, allocations: 0 / 0.5315 GB, free: 17.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.492, allocations: 161 kB / 0.5316 GB, free: 17.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.4922, allocations: 21.61 kB / 0.5316 GB, free: 17.32 MB / 378.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm 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.001664/0.4938, allocations: 1.622 MB / 0.5332 GB, free: 16.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.4941, allocations: 0.7184 MB / 0.5339 GB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.409e-05/0.4942, allocations: 11.55 kB / 0.5339 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.4942, allocations: 38.27 kB / 0.534 GB, free: 15.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4942, allocations: 4 kB / 0.534 GB, free: 15.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01494/0.5092, allocations: 2.978 MB / 0.5369 GB, free: 14.81 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001588/0.5094, allocations: 235.2 kB / 0.5371 GB, free: 14.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.117, allocations: 0 / 0.5371 GB, free: 14.57 MB / 378.7 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)