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.001414/0.001414, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2056/0.2056, allocations: 22.35 MB / 312.7 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.91 kB / 380.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2546, allocations: 54.93 MB / 435.9 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002515/0.2572, allocations: 1.855 MB / 437.7 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007132/0.2579, allocations: 0.5163 MB / 438.2 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.725e-05/0.258, allocations: 0 / 438.2 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.2582, allocations: 25.14 kB / 438.3 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.2584, allocations: 58.11 kB / 438.3 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001278/0.2585, allocations: 52.17 kB / 438.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.2587, allocations: 202.6 kB / 438.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.2588, allocations: 40.8 kB / 438.6 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.259, allocations: 86.42 kB / 438.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.2591, allocations: 91.55 kB / 438.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.2591, allocations: 12.69 kB / 438.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.749e-05/0.2592, allocations: 14.56 kB / 438.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.83e-05/0.2592, allocations: 40.98 kB / 438.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.105e-05/0.2593, allocations: 71.05 kB / 438.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.2594, allocations: 147 kB / 439.1 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2594, allocations: 3.328 kB / 439.1 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2594, allocations: 3.938 kB / 439.1 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.2595, allocations: 0 / 439.1 MB, free: 37.46 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.0008093/0.2603, allocations: 0.4943 MB / 439.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2603, allocations: 8.031 kB / 439.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.255e-05/0.2604, allocations: 43.53 kB / 439.6 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.746e-05/0.2604, allocations: 18.28 kB / 439.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.2607, allocations: 255.9 kB / 439.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.2607, allocations: 10.72 kB / 439.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.2608, allocations: 17.59 kB / 439.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.261, allocations: 118.7 kB / 440 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.261, allocations: 0 / 440 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.261, allocations: 4 kB / 440 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.261, allocations: 2.875 kB / 440 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.2612, allocations: 92.59 kB / 440.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006543/0.2619, allocations: 465.4 kB / 440.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.2622, allocations: 153.9 kB / 440.7 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.2623, allocations: 69.73 kB / 440.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.2624, allocations: 7.938 kB / 440.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.2624, allocations: 33.47 kB / 440.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2624, allocations: 0 / 440.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001032/0.2634, allocations: 0.5352 MB / 441.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.2635, allocations: 58.25 kB / 441.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.2638, allocations: 195.3 kB / 441.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.2638, allocations: 29.7 kB / 441.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.2639, allocations: 105.5 kB / 441.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.934e-05/0.2639, allocations: 66.34 kB / 441.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-05/0.264, allocations: 33.02 kB / 441.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.013e-05/0.2641, allocations: 328.9 kB / 442.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.416e-05/0.2642, allocations: 50.75 kB / 442.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.2643, allocations: 72.7 kB / 442.3 MB, free: 34.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006874/0.265, allocations: 262.3 kB / 442.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.265, allocations: 0 / 442.5 MB, free: 34.88 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.0004901/0.2655, allocations: 398.6 kB / 442.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2655, allocations: 5.219 kB / 442.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.2655, allocations: 0 / 442.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/0.2657, allocations: 51.31 kB / 443 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.2659, allocations: 36.33 kB / 443 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/0.2676, allocations: 4.647 MB / 447.7 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.2677, allocations: 16.88 kB / 447.7 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.2677, allocations: 6.938 kB / 447.7 MB, free: 29.77 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 9.964e-05/0.2678, allocations: 140.4 kB / 447.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.744e-05/0.2679, allocations: 13.78 kB / 447.8 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.2679, allocations: 24.08 kB / 447.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2679, allocations: 7 kB / 447.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-06/0.2679, allocations: 0 / 447.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.268, allocations: 0 / 447.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.2685, allocations: 0.4967 MB / 448.4 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2685, allocations: 0 / 448.4 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.2686, allocations: 31.72 kB / 448.4 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001112/0.2688, allocations: 37.05 kB / 448.4 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.2688, allocations: 0 / 448.4 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008522/0.2696, allocations: 1.622 MB / 450.1 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2697, allocations: 96 / 450.1 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/0.27, allocations: 343.5 kB / 450.4 MB, free: 27.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.2701, allocations: 91.2 kB / 450.5 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.2701, allocations: 10.62 kB / 450.5 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.2703, allocations: 19.55 kB / 450.5 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.2703, allocations: 12.28 kB / 450.5 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.2704, allocations: 6.781 kB / 450.5 MB, free: 27.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.2706, allocations: 161.2 kB / 450.7 MB, free: 27.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2706, allocations: 0 / 450.7 MB, free: 27.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003732/0.271, allocations: 32.91 kB / 450.7 MB, free: 27.14 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.0005512/0.2715, allocations: 0.8707 MB / 451.6 MB, free: 26.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004183/0.2719, allocations: 354.9 kB / 451.9 MB, free: 26.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.272, allocations: 0 / 451.9 MB, free: 26.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.2722, allocations: 200.3 kB / 452.1 MB, free: 25.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.2725, allocations: 21.45 kB / 452.2 MB, free: 25.97 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.002695/0.2752, allocations: 2.6 MB / 454.8 MB, free: 23.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.2754, allocations: 0.7323 MB / 455.5 MB, free: 23.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.062e-05/0.2755, allocations: 22.23 kB / 455.5 MB, free: 23.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.762e-05/0.2755, allocations: 46.44 kB / 455.6 MB, free: 23.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2756, allocations: 0 / 455.6 MB, free: 23.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.2979, allocations: 3.731 MB / 459.3 MB, free: 22.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.84/17.14, allocations: 7.156 kB / 459.3 MB, free: 22.65 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)