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.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008353/0.008353, allocations: 106.1 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 196.6 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09362/0.09362, allocations: 22.33 MB / 312.8 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 59.91 kB / 437 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1444, allocations: 54.97 MB / 492 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003887/0.1484, allocations: 1.853 MB / 493.8 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.1496, allocations: 0.5106 MB / 494.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.1499, allocations: 4 kB / 494.3 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003619/0.1502, allocations: 35.77 kB / 494.4 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002644/0.1505, allocations: 51.69 kB / 494.4 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.1508, allocations: 51.86 kB / 494.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003337/0.1511, allocations: 211.4 kB / 494.7 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.1513, allocations: 37.55 kB / 494.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002513/0.1516, allocations: 87.67 kB / 494.8 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.1519, allocations: 87.66 kB / 494.9 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-05/0.1519, allocations: 16 kB / 494.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.152, allocations: 12 kB / 494.9 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.1521, allocations: 47.83 kB / 495 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1522, allocations: 67.59 kB / 495 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.1524, allocations: 143.4 kB / 495.2 MB, free: 1.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.1525, allocations: 0 / 495.2 MB, free: 1.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1525, allocations: 4 kB / 495.2 MB, free: 1.586 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.1525, allocations: 0 / 495.2 MB, free: 1.586 MB / 366.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.001273/0.1538, allocations: 498.7 kB / 495.7 MB, free: 1.051 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.1538, allocations: 15.97 kB / 495.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.849e-05/0.1539, allocations: 16.75 kB / 495.7 MB, free: 1.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004893/0.1544, allocations: 244 kB / 495.9 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.1545, allocations: 12.38 kB / 495.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-05/0.1545, allocations: 12.38 kB / 496 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.1548, allocations: 121.5 kB / 496.1 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1548, allocations: 3.984 kB / 496.1 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.1548, allocations: 3.938 kB / 496.1 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.1548, allocations: 4 kB / 496.1 MB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.1551, allocations: 83.89 kB / 496.2 MB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009175/0.156, allocations: 476.2 kB / 496.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.1564, allocations: 158.7 kB / 496.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.1565, allocations: 60.83 kB / 496.9 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.1566, allocations: 4 kB / 496.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.1566, allocations: 38.84 kB / 496.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 2.044e-06/0.1566, allocations: 0 / 496.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001239/0.1578, allocations: 0.5366 MB / 497.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.1579, allocations: 59.34 kB / 497.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003509/0.1582, allocations: 202.1 kB / 497.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.1583, allocations: 25.7 kB / 497.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.1584, allocations: 116.3 kB / 497.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/0.1585, allocations: 59.11 kB / 497.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.1586, allocations: 37.7 kB / 497.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.1588, allocations: 318.8 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.159, allocations: 55.91 kB / 498.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.1591, allocations: 72.69 kB / 498.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007524/0.1599, allocations: 259.8 kB / 498.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1599, allocations: 3.938 kB / 498.6 MB, free: 13.88 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.000592/0.1605, allocations: 387.7 kB / 499 MB, free: 13.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1605, allocations: 7.938 kB / 499 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1605, allocations: 0 / 499 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001987/0.1607, allocations: 49.69 kB / 499 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.1609, allocations: 35.92 kB / 499.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002918/0.1638, allocations: 4.637 MB / 0.4919 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.164, allocations: 20.08 kB / 0.4919 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.164, allocations: 4 kB / 0.4919 GB, free: 8.352 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.0001575/0.1642, allocations: 134.7 kB / 0.4921 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/0.1643, allocations: 19.8 kB / 0.4921 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.624e-05/0.1643, allocations: 25.12 kB / 0.4921 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.1643, allocations: 0 / 0.4921 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1643, allocations: 7.922 kB / 0.4921 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.1643, allocations: 8 kB / 0.4921 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007108/0.1651, allocations: 499.1 kB / 0.4926 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.1651, allocations: 7.938 kB / 0.4926 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.1652, allocations: 27.92 kB / 0.4926 GB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001283/0.1654, allocations: 40.73 kB / 0.4927 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.1654, allocations: 7.984 kB / 0.4927 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.1667, allocations: 1.619 MB / 0.4943 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1667, allocations: 0 / 0.4943 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.1672, allocations: 338.4 kB / 0.4946 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.1673, allocations: 92.95 kB / 0.4947 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.1673, allocations: 12.09 kB / 0.4947 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.1675, allocations: 11.98 kB / 0.4947 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.1676, allocations: 11.92 kB / 0.4947 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.1676, allocations: 8 kB / 0.4947 GB, free: 5.262 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000255/0.1679, allocations: 151.2 kB / 0.4949 GB, free: 5.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1679, allocations: 0 / 0.4949 GB, free: 5.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003988/0.1683, allocations: 36 kB / 0.4949 GB, free: 5.078 MB / 382.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.000142/0.1685, allocations: 107.2 kB / 0.495 GB, free: 4.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006044/0.1691, allocations: 345.3 kB / 0.4953 GB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1691, allocations: 0 / 0.4953 GB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.1694, allocations: 198.6 kB / 0.4955 GB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.1698, allocations: 22.47 kB / 0.4955 GB, free: 4.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.1708, allocations: 0.5111 MB / 0.496 GB, free: 3.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.1712, allocations: 0.7241 MB / 0.4967 GB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.881e-05/0.1713, allocations: 17.42 kB / 0.4968 GB, free: 3.074 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.764e-05/0.1714, allocations: 19.42 kB / 0.4968 GB, free: 3.055 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1714, allocations: 3.938 kB / 0.4968 GB, free: 3.051 MB / 382.1 MB Notification: Performance of Templates: time 0.005813/0.1772, allocations: 1.975 MB / 0.4987 GB, free: 1.074 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile (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)