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.0007765/0.0007765, allocations: 80.45 kB / 20.71 MB, free: 3.859 MB / 18.57 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.0008139/0.0008139, allocations: 165.2 kB / 23.98 MB, free: 0.582 MB / 18.57 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 0.8495/0.8495, allocations: 177.1 MB / 204.3 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.06042/0.06042, allocations: 18.12 MB / 278.8 MB, free: 11.55 MB / 266.7 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.333e-06/1.333e-06, allocations: 0 / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.097e-05/2.23e-05, allocations: 3.5 kB / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001788/0.001811, allocations: 1.823 MB / 418.1 MB, free: 11.26 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006123/0.002423, allocations: 0.5308 MB / 418.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.389e-05/0.002487, allocations: 1.375 kB / 418.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.002724, allocations: 33.8 kB / 418.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.002844, allocations: 46.55 kB / 418.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001542/0.002998, allocations: 77.19 kB / 418.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.003157, allocations: 179.2 kB / 419 MB, free: 10.74 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.72e-05/0.003254, allocations: 28.16 kB / 419 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.00342, allocations: 87.61 kB / 419.1 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.003535, allocations: 70.7 kB / 419.2 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.105e-05/0.003556, allocations: 12.5 kB / 419.2 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.679e-05/0.003572, allocations: 13.62 kB / 419.2 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.388e-05/0.003616, allocations: 41.72 kB / 419.2 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.085e-05/0.003657, allocations: 42.34 kB / 419.3 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.003804, allocations: 151.3 kB / 419.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.003806, allocations: 1.344 kB / 419.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.003806, allocations: 0 / 419.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.00381, allocations: 4 kB / 419.4 MB, free: 10.57 MB / 330.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.0005584/0.004368, allocations: 424.4 kB / 419.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.684e-05/0.004395, allocations: 10.3 kB / 419.9 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.622e-05/0.004431, allocations: 21.83 kB / 419.9 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.004657, allocations: 188.9 kB / 420.1 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.004673, allocations: 9.281 kB / 420.1 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.004696, allocations: 12.88 kB / 420.1 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.004843, allocations: 113.7 kB / 420.2 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.004852, allocations: 192 / 420.2 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.004862, allocations: 9.406 kB / 420.2 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.004866, allocations: 9.422 kB / 420.2 MB, free: 9.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.004987, allocations: 89.39 kB / 420.3 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004353/0.005423, allocations: 376.5 kB / 420.7 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.005648, allocations: 157.8 kB / 420.8 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.892e-05/0.005717, allocations: 64.84 kB / 420.9 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.005731, allocations: 1.953 kB / 420.9 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.999e-06/0.005741, allocations: 36.88 kB / 420.9 MB, free: 9.539 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.005743, allocations: 1.656 kB / 420.9 MB, free: 9.539 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006281/0.006371, allocations: 469.5 kB / 421.4 MB, free: 9.246 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.858e-05/0.006389, allocations: 57.97 kB / 421.4 MB, free: 9.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.00656, allocations: 199.9 kB / 421.6 MB, free: 9.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.006568, allocations: 26.98 kB / 421.7 MB, free: 9.023 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.006609, allocations: 123.1 kB / 421.8 MB, free: 8.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.006636, allocations: 60.41 kB / 421.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/0.006671, allocations: 39.25 kB / 421.9 MB, free: 8.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.677e-05/0.006698, allocations: 323.9 kB / 422.2 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.07e-05/0.006759, allocations: 55.64 kB / 422.3 MB, free: 8.488 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.614e-05/0.006825, allocations: 71.5 kB / 422.3 MB, free: 8.453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.007251, allocations: 261.3 kB / 422.6 MB, free: 8.359 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.007252, allocations: 0 / 422.6 MB, free: 8.359 MB / 330.7 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.00031/0.007562, allocations: 238.9 kB / 422.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.007573, allocations: 7.625 kB / 422.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.007577, allocations: 1.188 kB / 422.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001117/0.007689, allocations: 48.84 kB / 422.9 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.755e-05/0.007786, allocations: 37.98 kB / 422.9 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009798/0.008766, allocations: 4.382 MB / 427.3 MB, free: 3.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.533e-05/0.008851, allocations: 17.05 kB / 427.3 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.008859, allocations: 3.625 kB / 427.3 MB, free: 3.785 MB / 330.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 (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 6.949e-05/0.008928, allocations: 142.8 kB / 427.4 MB, free: 3.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.104e-05/0.008949, allocations: 13.83 kB / 427.5 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.915e-05/0.008968, allocations: 21.91 kB / 427.5 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.00897, allocations: 2.797 kB / 427.5 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.008972, allocations: 0 / 427.5 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.008976, allocations: 2.531 kB / 427.5 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.009322, allocations: 432.2 kB / 427.9 MB, free: 3.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.009325, allocations: 1.828 kB / 427.9 MB, free: 3.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.371e-05/0.009408, allocations: 27.48 kB / 427.9 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.018e-05/0.009489, allocations: 39.64 kB / 428 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.009499, allocations: 6.203 kB / 428 MB, free: 3.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004679/0.009967, allocations: 1.485 MB / 429.5 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.009968, allocations: 0 / 429.5 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002642/0.01023, allocations: 342.3 kB / 429.8 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.666e-05/0.01025, allocations: 14.56 kB / 429.8 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.01026, allocations: 10.59 kB / 429.8 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.353e-05/0.01035, allocations: 13.56 kB / 429.8 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.01039, allocations: 13.84 kB / 429.9 MB, free: 1.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.01039, allocations: 7.156 kB / 429.9 MB, free: 1.609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.01051, allocations: 157.2 kB / 430 MB, free: 1.516 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01051, allocations: 0 / 430 MB, free: 1.516 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002453/0.01076, allocations: 37.5 kB / 430 MB, free: 1.508 MB / 330.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 (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 6.13e-05/0.01082, allocations: 101.8 kB / 430.1 MB, free: 1.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002843/0.0111, allocations: 344.5 kB / 430.5 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.01111, allocations: 1.219 kB / 430.5 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.01124, allocations: 191.8 kB / 430.7 MB, free: 1.004 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.01143, allocations: 17.34 kB / 430.7 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005015/0.01193, allocations: 471 kB / 431.1 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.881e-05/0.012, allocations: 120.9 kB / 431.3 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.73e-05/0.01204, allocations: 17.08 kB / 431.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01204, allocations: 0 / 431.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of Templates: time 0.003776/0.01581, allocations: 2.876 MB / 434.2 MB, free: 376 kB / 330.7 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.479748722165823] Failed to read output from testmodel.py, exit status != 0: 0.021031958051025867 0.029391456000000003 0.023859375000000002 Calling exit ...