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: "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001124/0.001124, allocations: 198.5 kB / 16.26 MB, free: 6.625 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.207/1.207, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1763/0.1763, allocations: 22.35 MB / 312.4 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 71.89 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2055, allocations: 54.94 MB / 435.3 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002154/0.2077, allocations: 1.908 MB / 437.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005569/0.2083, allocations: 0.5119 MB / 437.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.377e-05/0.2084, allocations: 7.938 kB / 437.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002108/0.2086, allocations: 15.27 kB / 437.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.2087, allocations: 44.67 kB / 437.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001079/0.2088, allocations: 49.42 kB / 437.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.209, allocations: 205 kB / 438.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2091, allocations: 38.83 kB / 438.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.2092, allocations: 87.78 kB / 438.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.2093, allocations: 91.95 kB / 438.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.2094, allocations: 13.84 kB / 438.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.044e-05/0.2094, allocations: 13.78 kB / 438.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.457e-05/0.2094, allocations: 46.8 kB / 438.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.705e-05/0.2095, allocations: 68.97 kB / 438.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.2096, allocations: 146 kB / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.2096, allocations: 0 / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.2096, allocations: 0 / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.2096, allocations: 0 / 438.6 MB, free: 37.37 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.0006993/0.2103, allocations: 0.4905 MB / 439.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.733e-05/0.2104, allocations: 13.09 kB / 439.1 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.067e-05/0.2104, allocations: 44.22 kB / 439.1 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.189e-05/0.2104, allocations: 14.66 kB / 439.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.2107, allocations: 261.2 kB / 439.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.2107, allocations: 7.5 kB / 439.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.2108, allocations: 23.97 kB / 439.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.211, allocations: 107.6 kB / 439.5 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.211, allocations: 0 / 439.5 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.211, allocations: 7.375 kB / 439.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.211, allocations: 2.688 kB / 439.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.2111, allocations: 93.3 kB / 439.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005352/0.2117, allocations: 472.4 kB / 440.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.212, allocations: 154.8 kB / 440.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.079e-05/0.2121, allocations: 68.84 kB / 440.3 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.2121, allocations: 0 / 440.3 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.341e-05/0.2121, allocations: 37.14 kB / 440.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 8.81e-07/0.2121, allocations: 0 / 440.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000749/0.2129, allocations: 0.5407 MB / 440.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.628e-05/0.2129, allocations: 54.25 kB / 440.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.2131, allocations: 195.3 kB / 441.1 MB, free: 35.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.119e-05/0.2132, allocations: 29.7 kB / 441.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.779e-05/0.2132, allocations: 112.9 kB / 441.3 MB, free: 35.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.2132, allocations: 59.12 kB / 441.3 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/0.2133, allocations: 36.75 kB / 441.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.56e-05/0.2133, allocations: 336.4 kB / 441.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.767e-05/0.2134, allocations: 44.41 kB / 441.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.014e-05/0.2135, allocations: 69.47 kB / 441.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006235/0.2141, allocations: 266.4 kB / 442.1 MB, free: 34.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2141, allocations: 0 / 442.1 MB, free: 34.78 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.0004042/0.2145, allocations: 391 kB / 442.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.2146, allocations: 5.375 kB / 442.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.2146, allocations: 0 / 442.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001307/0.2147, allocations: 51.95 kB / 442.5 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.2149, allocations: 34.53 kB / 442.5 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.2162, allocations: 4.64 MB / 447.2 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.2164, allocations: 19.09 kB / 447.2 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.2164, allocations: 2.969 kB / 447.2 MB, free: 29.7 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 7.897e-05/0.2165, allocations: 141.3 kB / 447.3 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.2165, allocations: 14.28 kB / 447.3 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.273e-05/0.2165, allocations: 23.08 kB / 447.4 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2166, allocations: 6.562 kB / 447.4 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.2166, allocations: 0 / 447.4 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2166, allocations: 0 / 447.4 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004538/0.217, allocations: 0.4998 MB / 447.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.217, allocations: 0 / 447.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.2172, allocations: 30.69 kB / 447.9 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001044/0.2173, allocations: 39.92 kB / 447.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.2173, allocations: 6.812 kB / 447.9 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006759/0.218, allocations: 1.623 MB / 449.6 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.218, allocations: 0 / 449.6 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.2183, allocations: 335.1 kB / 449.9 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.828e-05/0.2184, allocations: 97.38 kB / 450 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.2184, allocations: 0 / 450 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.2186, allocations: 23.09 kB / 450 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.2186, allocations: 12.62 kB / 450 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.2186, allocations: 2.875 kB / 450 MB, free: 27.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.2188, allocations: 161.6 kB / 450.2 MB, free: 27.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2188, allocations: 0 / 450.2 MB, free: 27.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003469/0.2192, allocations: 34.12 kB / 450.2 MB, free: 27.07 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.0004662/0.2197, allocations: 0.8705 MB / 451.1 MB, free: 26.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.22, allocations: 360.5 kB / 451.4 MB, free: 26.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.22, allocations: 4.062 kB / 451.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.2202, allocations: 195.7 kB / 451.6 MB, free: 25.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.2205, allocations: 22.12 kB / 451.7 MB, free: 25.89 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.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.002277/0.2228, allocations: 2.646 MB / 454.3 MB, free: 23.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.2229, allocations: 0.7306 MB / 455 MB, free: 23.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.904e-05/0.223, allocations: 18.94 kB / 455.1 MB, free: 23.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.521e-05/0.223, allocations: 50.58 kB / 455.1 MB, free: 23.03 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.223, allocations: 0 / 455.1 MB, free: 23.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01636/0.2394, allocations: 3.637 MB / 458.7 MB, free: 22.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001134/0.2395, allocations: 215.1 kB / 458.9 MB, free: 22.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.19, allocations: 3.609 kB / 459 MB, free: 22.39 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)