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.0007905/0.0007904, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004853/0.004853, allocations: 170 kB / 16.26 MB, free: 6.613 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.312/1.312, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2136/0.2136, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002925/0.0002925, allocations: 8 kB / 382.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2332, allocations: 55.98 MB / 438.7 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001419/0.2347, allocations: 1.559 MB / 440.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006158/0.2353, allocations: 0.512 MB / 440.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.739e-05/0.2354, allocations: 3.062 kB / 440.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.2356, allocations: 17.12 kB / 440.8 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.2358, allocations: 47.55 kB / 440.8 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001198/0.2359, allocations: 48.53 kB / 440.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001702/0.2361, allocations: 199.5 kB / 441.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2362, allocations: 34.56 kB / 441.1 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.2363, allocations: 78.86 kB / 441.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2364, allocations: 76.16 kB / 441.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.2365, allocations: 5.594 kB / 441.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.01e-05/0.2365, allocations: 7.969 kB / 441.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.055e-05/0.2366, allocations: 33.75 kB / 441.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.746e-05/0.2366, allocations: 91.78 kB / 441.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.2367, allocations: 133.4 kB / 441.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2368, allocations: 4 kB / 441.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2368, allocations: 0 / 441.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.2368, allocations: 2.469 kB / 441.5 MB, free: 37.52 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.0007545/0.2375, allocations: 475.7 kB / 442 MB, free: 37.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.2376, allocations: 15.59 kB / 442 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.2376, allocations: 44.58 kB / 442 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.499e-05/0.2377, allocations: 16.81 kB / 442.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.238, allocations: 254.3 kB / 442.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.238, allocations: 11 kB / 442.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.238, allocations: 27.25 kB / 442.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.2382, allocations: 106.2 kB / 442.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2382, allocations: 0 / 442.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.2383, allocations: 4 kB / 442.4 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2383, allocations: 2.812 kB / 442.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.2385, allocations: 89.5 kB / 442.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006199/0.2391, allocations: 474.5 kB / 443 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.2394, allocations: 160.7 kB / 443.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2395, allocations: 68.45 kB / 443.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.2395, allocations: 2.875 kB / 443.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.216e-05/0.2395, allocations: 34.56 kB / 443.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.2395, allocations: 3.938 kB / 443.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008327/0.2404, allocations: 0.5395 MB / 443.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.624e-05/0.2404, allocations: 54.16 kB / 443.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.2407, allocations: 199.6 kB / 444.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.2407, allocations: 25.7 kB / 444.1 MB, free: 35.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.2408, allocations: 111.2 kB / 444.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.2408, allocations: 59.08 kB / 444.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.821e-05/0.2408, allocations: 19.97 kB / 444.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.931e-05/0.2409, allocations: 335.9 kB / 444.6 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.832e-05/0.241, allocations: 48.25 kB / 444.6 MB, free: 35.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.065e-05/0.2411, allocations: 63.41 kB / 444.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006883/0.2418, allocations: 271 kB / 445 MB, free: 34.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.2418, allocations: 3.938 kB / 445 MB, free: 34.95 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.0004458/0.2422, allocations: 386 kB / 445.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.2422, allocations: 4.344 kB / 445.4 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.2423, allocations: 2.938 kB / 445.4 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001478/0.2424, allocations: 58.27 kB / 445.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.2426, allocations: 28.62 kB / 445.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.244, allocations: 4.243 MB / 449.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.2442, allocations: 20.03 kB / 449.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.2442, allocations: 2.75 kB / 449.7 MB, free: 30.27 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 8.909e-05/0.2443, allocations: 143.2 kB / 449.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.759e-05/0.2444, allocations: 13.72 kB / 449.9 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.796e-05/0.2444, allocations: 20.38 kB / 449.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2444, allocations: 3.094 kB / 449.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.2444, allocations: 8 kB / 449.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.2444, allocations: 3.422 kB / 449.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.2449, allocations: 498 kB / 450.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.245, allocations: 3.328 kB / 450.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.2451, allocations: 33.78 kB / 450.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.2452, allocations: 45.06 kB / 450.5 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.2453, allocations: 6.844 kB / 450.5 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007262/0.246, allocations: 1.457 MB / 451.9 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.246, allocations: 0 / 451.9 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.2464, allocations: 336.4 kB / 452.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.2464, allocations: 93.83 kB / 452.3 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.2465, allocations: 10.78 kB / 452.4 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.2467, allocations: 16.52 kB / 452.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.777e-05/0.2467, allocations: 9.062 kB / 452.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.2467, allocations: 6.906 kB / 452.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002208/0.247, allocations: 159.3 kB / 452.5 MB, free: 27.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.247, allocations: 0 / 452.5 MB, free: 27.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003941/0.2474, allocations: 32.88 kB / 452.6 MB, free: 27.8 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.000522/0.2479, allocations: 0.8726 MB / 453.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003791/0.2483, allocations: 367.1 kB / 453.8 MB, free: 26.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2483, allocations: 0 / 453.8 MB, free: 26.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000215/0.2485, allocations: 182.4 kB / 454 MB, free: 26.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.2488, allocations: 27.22 kB / 454 MB, free: 26.62 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.002579/0.2514, allocations: 2.714 MB / 456.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.2516, allocations: 0.7291 MB / 457.5 MB, free: 23.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.596e-05/0.2516, allocations: 18.83 kB / 457.5 MB, free: 23.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.2517, allocations: 43.73 kB / 457.5 MB, free: 23.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2517, allocations: 0 / 457.5 MB, free: 23.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2621/0.5139, allocations: 3.408 MB / 460.9 MB, free: 23.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.514, allocations: 209.9 kB / 461.1 MB, free: 23.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.387, allocations: 0 / 461.1 MB, free: 23.2 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)