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.001415/0.001415, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001484/0.001484, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.513/1.513, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1267/0.1267, allocations: 22.92 MB / 336.1 MB, free: 12.41 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.00201/0.00201, allocations: 67.89 kB / 472.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3605, allocations: 59.28 MB / 0.519 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002859/0.3634, allocations: 1.827 MB / 0.5208 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009321/0.3643, allocations: 0.5296 MB / 0.5213 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.639e-05/0.3644, allocations: 1.188 kB / 0.5213 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002687/0.3646, allocations: 29.83 kB / 0.5213 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.3648, allocations: 47.17 kB / 0.5214 GB, free: 9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.365, allocations: 66.98 kB / 0.5214 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002776/0.3653, allocations: 222.8 kB / 0.5217 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.3654, allocations: 32.67 kB / 0.5217 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.3656, allocations: 108.4 kB / 0.5218 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.3658, allocations: 93.48 kB / 0.5219 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.3658, allocations: 12.62 kB / 0.5219 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.056e-05/0.3659, allocations: 12.62 kB / 0.5219 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.494e-05/0.3659, allocations: 42.31 kB / 0.5219 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.637e-05/0.366, allocations: 58.66 kB / 0.522 GB, free: 8.711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.3662, allocations: 148.2 kB / 0.5221 GB, free: 8.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3662, allocations: 3.938 kB / 0.5221 GB, free: 8.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3662, allocations: 0 / 0.5221 GB, free: 8.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.3662, allocations: 0 / 0.5221 GB, free: 8.652 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.0009504/0.3672, allocations: 427.7 kB / 0.5225 GB, free: 8.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3672, allocations: 11.17 kB / 0.5226 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.54e-05/0.3672, allocations: 2.844 kB / 0.5226 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.36e-05/0.3673, allocations: 45.5 kB / 0.5226 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.593e-05/0.3673, allocations: 20.75 kB / 0.5226 GB, free: 8.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.3677, allocations: 190.3 kB / 0.5228 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.3677, allocations: 13.31 kB / 0.5228 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.3678, allocations: 16.33 kB / 0.5228 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.368, allocations: 116.3 kB / 0.5229 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.368, allocations: 0.7031 kB / 0.5229 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.368, allocations: 5.219 kB / 0.5229 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.368, allocations: 2.344 kB / 0.523 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.3683, allocations: 89.69 kB / 0.523 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00074/0.369, allocations: 411.5 kB / 0.5234 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.3694, allocations: 150.5 kB / 0.5236 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.3695, allocations: 57.23 kB / 0.5236 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.3695, allocations: 2.844 kB / 0.5236 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.3695, allocations: 36.52 kB / 0.5237 GB, free: 7.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.3695, allocations: 7.938 kB / 0.5237 GB, free: 7.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001015/0.3705, allocations: 476.8 kB / 0.5241 GB, free: 7.242 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.3706, allocations: 53.62 kB / 0.5242 GB, free: 7.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003171/0.3709, allocations: 200.2 kB / 0.5244 GB, free: 7.055 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.3709, allocations: 25.7 kB / 0.5244 GB, free: 7.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.3709, allocations: 119.3 kB / 0.5245 GB, free: 6.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.371, allocations: 63.78 kB / 0.5246 GB, free: 6.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.812e-05/0.3711, allocations: 39.81 kB / 0.5246 GB, free: 6.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.731e-05/0.3711, allocations: 325.1 kB / 0.5249 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.847e-05/0.3712, allocations: 46.33 kB / 0.525 GB, free: 6.496 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.3713, allocations: 77.28 kB / 0.525 GB, free: 6.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007505/0.3721, allocations: 259.6 kB / 0.5253 GB, free: 6.363 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.3721, allocations: 1.344 kB / 0.5253 GB, free: 6.363 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.0004911/0.3726, allocations: 235.7 kB / 0.5255 GB, free: 6.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.3726, allocations: 4.5 kB / 0.5255 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3726, allocations: 1.5 kB / 0.5255 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.3727, allocations: 47.23 kB / 0.5256 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.3729, allocations: 41.41 kB / 0.5256 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.3747, allocations: 4.427 MB / 0.5299 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.3749, allocations: 13.44 kB / 0.5299 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.3749, allocations: 7.781 kB / 0.5299 GB, free: 1.73 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.0001581/0.3751, allocations: 139.5 kB / 0.5301 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.855e-05/0.3751, allocations: 14.84 kB / 0.5301 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.223e-05/0.3752, allocations: 26.06 kB / 0.5301 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.3752, allocations: 7.094 kB / 0.5301 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3752, allocations: 0 / 0.5301 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3752, allocations: 0 / 0.5301 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006652/0.3758, allocations: 464 kB / 0.5306 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3758, allocations: 4 kB / 0.5306 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.376, allocations: 26.75 kB / 0.5306 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001331/0.3761, allocations: 33.5 kB / 0.5306 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.855e-05/0.3761, allocations: 8.844 kB / 0.5306 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.3772, allocations: 1.507 MB / 0.5321 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3772, allocations: 0 / 0.5321 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.3777, allocations: 340.3 kB / 0.5324 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.3777, allocations: 16.5 kB / 0.5324 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.3777, allocations: 3.312 kB / 0.5324 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.3779, allocations: 16.06 kB / 0.5325 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.531e-05/0.378, allocations: 14.95 kB / 0.5325 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.378, allocations: 2.969 kB / 0.5325 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002586/0.3783, allocations: 164.8 kB / 0.5326 GB, free: 15.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3783, allocations: 0 / 0.5326 GB, free: 15.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004064/0.3787, allocations: 34.94 kB / 0.5327 GB, free: 15.38 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.0008854/0.3795, allocations: 0.8724 MB / 0.5335 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005925/0.3801, allocations: 353.5 kB / 0.5339 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3801, allocations: 1.188 kB / 0.5339 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003187/0.3805, allocations: 181.2 kB / 0.534 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.3808, allocations: 15.41 kB / 0.534 GB, free: 14.22 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.003963/0.3847, allocations: 2.32 MB / 0.5363 GB, free: 12.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.3849, allocations: 117 kB / 0.5364 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.925e-05/0.385, allocations: 19.91 kB / 0.5364 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.917e-05/0.3851, allocations: 47.86 kB / 0.5365 GB, free: 12.39 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3851, allocations: 0 / 0.5365 GB, free: 12.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.4153, allocations: 4.025 MB / 0.5404 GB, free: 11.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.82, allocations: 2.219 kB / 0.5404 GB, free: 11.76 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.802680023014545] Failed to read output from testmodel.py, exit status != 0: 14.007048230967484 14.031675393 13.659959894 Calling exit ...