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.001436/0.001436, allocations: 82.95 kB / 19.96 MB, free: 1.754 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.002325/0.002325, allocations: 163.5 kB / 23.23 MB, free: 4.883 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.509/1.509, allocations: 177.1 MB / 203.5 MB, free: 9.176 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.102/0.102, allocations: 18.14 MB / 278.1 MB, free: 15.05 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: translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 415.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.814e-05, allocations: 2.281 kB / 415.6 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.00337/0.003398, allocations: 1.841 MB / 417.4 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.00458, allocations: 0.5184 MB / 417.9 MB, free: 224 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.828e-05/0.004668, allocations: 0 / 417.9 MB, free: 224 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003285/0.004996, allocations: 31.77 kB / 417.9 MB, free: 192 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.005204, allocations: 55.56 kB / 418 MB, free: 136 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.005442, allocations: 71.88 kB / 418.1 MB, free: 64 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.00578, allocations: 179.4 kB / 418.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.005913, allocations: 29.8 kB / 418.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/0.006161, allocations: 83.67 kB / 418.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.006336, allocations: 75.77 kB / 418.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.746e-05/0.006374, allocations: 12 kB / 418.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.584e-05/0.006409, allocations: 16 kB / 418.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.88e-05/0.006488, allocations: 35.84 kB / 418.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.851e-05/0.006577, allocations: 51.83 kB / 418.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.006939, allocations: 147.5 kB / 418.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.006944, allocations: 0 / 418.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.006946, allocations: 3.938 kB / 418.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.006952, allocations: 4 kB / 418.7 MB, free: 15.44 MB / 350.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.001071/0.008023, allocations: 421.5 kB / 419.1 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.008068, allocations: 8.922 kB / 419.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.008129, allocations: 20.8 kB / 419.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004444/0.008574, allocations: 197.4 kB / 419.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.008594, allocations: 4.375 kB / 419.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.076e-05/0.008635, allocations: 20.36 kB / 419.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.008882, allocations: 106.2 kB / 419.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.008892, allocations: 192 / 419.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.00891, allocations: 7.938 kB / 419.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.008918, allocations: 4 kB / 419.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.009142, allocations: 95.81 kB / 419.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009038/0.01005, allocations: 384.1 kB / 419.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.01044, allocations: 150.7 kB / 420.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.01057, allocations: 60.83 kB / 420.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.01059, allocations: 4 kB / 420.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.01063, allocations: 34.5 kB / 420.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.01063, allocations: 0 / 420.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001177/0.01181, allocations: 480.7 kB / 420.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.01186, allocations: 51.41 kB / 420.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.01222, allocations: 206.2 kB / 420.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.01225, allocations: 29.7 kB / 420.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.01236, allocations: 108.4 kB / 421 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.773e-05/0.01243, allocations: 59.48 kB / 421.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.224e-05/0.0125, allocations: 41.7 kB / 421.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.01268, allocations: 326.8 kB / 421.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.01279, allocations: 39.98 kB / 421.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.01293, allocations: 80.23 kB / 421.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008114/0.01374, allocations: 260.4 kB / 421.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.01374, allocations: 0 / 421.8 MB, free: 12.1 MB / 350.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.0005983/0.01434, allocations: 242.5 kB / 422.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.01436, allocations: 4 kB / 422.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.01436, allocations: 0 / 422.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002016/0.01456, allocations: 53.62 kB / 422.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.01477, allocations: 35.97 kB / 422.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/0.01847, allocations: 4.383 MB / 426.5 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.01869, allocations: 16 kB / 426.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.0187, allocations: 8 kB / 426.6 MB, free: 7.078 MB / 350.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.0002138/0.01892, allocations: 141.9 kB / 426.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/0.01896, allocations: 7.953 kB / 426.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.78e-05/0.01901, allocations: 25.11 kB / 426.7 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.01901, allocations: 4 kB / 426.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.01902, allocations: 0 / 426.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.01902, allocations: 0 / 426.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008848/0.01991, allocations: 426.8 kB / 427.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.01991, allocations: 4 kB / 427.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.02012, allocations: 27.98 kB / 427.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001955/0.02032, allocations: 44.77 kB / 427.2 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.02034, allocations: 3.984 kB / 427.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.02174, allocations: 1.485 MB / 428.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.02174, allocations: 4.094 kB / 428.7 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005289/0.02227, allocations: 342.6 kB / 429.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.0223, allocations: 15.91 kB / 429.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.02233, allocations: 3.938 kB / 429.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.02252, allocations: 15.98 kB / 429.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.02258, allocations: 15.91 kB / 429.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.0226, allocations: 8 kB / 429.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002738/0.02287, allocations: 159.2 kB / 429.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02287, allocations: 0 / 429.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004553/0.02332, allocations: 32 kB / 429.3 MB, free: 4.172 MB / 350.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.0001414/0.02347, allocations: 99.19 kB / 429.4 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005948/0.02406, allocations: 349.2 kB / 429.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.02406, allocations: 0 / 429.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.02437, allocations: 194.6 kB / 429.9 MB, free: 3.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.02469, allocations: 15.98 kB / 429.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009615/0.02565, allocations: 437.8 kB / 430.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.02579, allocations: 119.5 kB / 430.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.441e-05/0.02586, allocations: 17.48 kB / 430.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.02592, allocations: 16.5 kB / 430.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.02592, allocations: 7.938 kB / 430.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of Templates: time 0.006404/0.03232, allocations: 1.971 MB / 432.5 MB, free: 0.8867 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ElecSys_case_studies.foo -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.629106100648642] Failed to read output from testmodel.py, exit status != 0: 0.04181921109557152 0.057210717 0.047151079000000005 Calling exit ...