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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 216.8 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.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.1029/0.1029, allocations: 22.94 MB / 336.2 MB, free: 12.62 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 63.91 kB / 472.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3634, allocations: 59.28 MB / 0.5191 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003071/0.3665, allocations: 1.889 MB / 0.5209 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.3675, allocations: 0.5591 MB / 0.5215 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.168e-05/0.3676, allocations: 1.031 kB / 0.5215 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000313/0.3679, allocations: 24.88 kB / 0.5215 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.3681, allocations: 55.72 kB / 0.5216 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.3683, allocations: 58.73 kB / 0.5216 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003319/0.3686, allocations: 231.1 kB / 0.5218 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.3688, allocations: 32.61 kB / 0.5219 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.369, allocations: 107.5 kB / 0.522 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.3692, allocations: 97.38 kB / 0.5221 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.453e-05/0.3693, allocations: 12.62 kB / 0.5221 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.16e-05/0.3693, allocations: 14.19 kB / 0.5221 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.211e-05/0.3694, allocations: 40.89 kB / 0.5221 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.832e-05/0.3695, allocations: 67.78 kB / 0.5222 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002416/0.3697, allocations: 149.3 kB / 0.5223 GB, free: 8.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.3697, allocations: 1.281 kB / 0.5223 GB, free: 8.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3697, allocations: 0 / 0.5223 GB, free: 8.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.3697, allocations: 0.75 kB / 0.5223 GB, free: 8.602 MB / 382.1 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.0009468/0.3707, allocations: 426.2 kB / 0.5227 GB, free: 8.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3707, allocations: 9.984 kB / 0.5228 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.442e-05/0.3707, allocations: 10.94 kB / 0.5228 GB, free: 8.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.3708, allocations: 41.16 kB / 0.5228 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/0.3708, allocations: 25.72 kB / 0.5228 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.3712, allocations: 193.8 kB / 0.523 GB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.3712, allocations: 9.062 kB / 0.523 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/0.3712, allocations: 16.91 kB / 0.523 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.3714, allocations: 112.6 kB / 0.5231 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3714, allocations: 0 / 0.5231 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3714, allocations: 5.094 kB / 0.5231 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3715, allocations: 7.406 kB / 0.5232 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.3716, allocations: 89.59 kB / 0.5232 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006731/0.3723, allocations: 439 kB / 0.5237 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.3726, allocations: 153.4 kB / 0.5238 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.3727, allocations: 58.28 kB / 0.5239 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.3728, allocations: 2.156 kB / 0.5239 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.501e-05/0.3728, allocations: 40.78 kB / 0.5239 GB, free: 7.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.3728, allocations: 0 / 0.5239 GB, free: 7.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009437/0.3737, allocations: 473.6 kB / 0.5244 GB, free: 7.184 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.263e-05/0.3737, allocations: 53.81 kB / 0.5244 GB, free: 7.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.374, allocations: 198.6 kB / 0.5246 GB, free: 6.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.3741, allocations: 27.59 kB / 0.5246 GB, free: 6.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.796e-05/0.3741, allocations: 118.6 kB / 0.5247 GB, free: 6.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.792e-05/0.3742, allocations: 63.45 kB / 0.5248 GB, free: 6.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.035e-05/0.3742, allocations: 36.3 kB / 0.5248 GB, free: 6.773 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.28e-05/0.3743, allocations: 327.6 kB / 0.5251 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.3744, allocations: 49.52 kB / 0.5252 GB, free: 6.438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.3745, allocations: 74.23 kB / 0.5253 GB, free: 6.395 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006971/0.3752, allocations: 258.7 kB / 0.5255 GB, free: 6.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.3752, allocations: 1.344 kB / 0.5255 GB, free: 6.301 MB / 382.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 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.000474/0.3757, allocations: 233.3 kB / 0.5257 GB, free: 6.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.3757, allocations: 8.281 kB / 0.5257 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3757, allocations: 1.188 kB / 0.5257 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.3759, allocations: 60.67 kB / 0.5258 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.376, allocations: 36.55 kB / 0.5258 GB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.3777, allocations: 4.439 MB / 0.5302 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.3778, allocations: 18.83 kB / 0.5302 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.3778, allocations: 4.219 kB / 0.5302 GB, free: 1.645 MB / 382.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.3779, allocations: 137.1 kB / 0.5303 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.378, allocations: 14.59 kB / 0.5303 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.378, allocations: 22.03 kB / 0.5304 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.378, allocations: 8.516 kB / 0.5304 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.378, allocations: 1 kB / 0.5304 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.378, allocations: 0 / 0.5304 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005671/0.3786, allocations: 481 kB / 0.5308 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3786, allocations: 4 kB / 0.5308 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.3788, allocations: 24.09 kB / 0.5309 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001188/0.3789, allocations: 35.3 kB / 0.5309 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.3789, allocations: 7.781 kB / 0.5309 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009311/0.3798, allocations: 1.518 MB / 0.5324 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3798, allocations: 1.062 kB / 0.5324 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004841/0.3803, allocations: 340 kB / 0.5327 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.3803, allocations: 13.66 kB / 0.5327 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.3804, allocations: 6.188 kB / 0.5327 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.3806, allocations: 13.45 kB / 0.5327 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.085e-05/0.3806, allocations: 22.86 kB / 0.5328 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.3806, allocations: 6.938 kB / 0.5328 GB, free: 15.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002554/0.3809, allocations: 154.2 kB / 0.5329 GB, free: 15.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3809, allocations: 0 / 0.5329 GB, free: 15.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003968/0.3813, allocations: 33.75 kB / 0.5329 GB, free: 15.29 MB / 398.1 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 (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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008311/0.3821, allocations: 0.8774 MB / 0.5338 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000533/0.3826, allocations: 349.3 kB / 0.5341 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3826, allocations: 0 / 0.5341 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.3829, allocations: 191.9 kB / 0.5343 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.3832, allocations: 18.44 kB / 0.5343 GB, free: 14.11 MB / 398.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.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.003488/0.3867, allocations: 2.313 MB / 0.5366 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.3871, allocations: 0.7287 MB / 0.5373 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.201e-05/0.3872, allocations: 20.61 kB / 0.5373 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3873, allocations: 44.2 kB / 0.5374 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3873, allocations: 0 / 0.5374 GB, free: 11.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02868/0.416, allocations: 4.064 MB / 0.5413 GB, free: 11.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.57, allocations: 10.44 kB / 0.5413 GB, free: 11.09 MB / 398.1 MB " [Timeout remaining time 646] (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/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_foo_fmu --startTime=0 --stopTime=2000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.446541619021446] Failed to read output from testmodel.py, exit status != 0: 13.75707459403202 13.778979319 13.406167503 Calling exit ...