Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.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.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",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.001082/0.001082, allocations: 108 kB / 15.61 MB, free: 152 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.001248/0.001248, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2113/0.2113, allocations: 22.35 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002409/0.002409, allocations: 67.89 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3117, allocations: 54.94 MB / 435.9 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001651/0.3134, allocations: 0.5577 MB / 436.4 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001482/0.3135, allocations: 35.03 kB / 436.5 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.171e-05/0.3136, allocations: 0 / 436.5 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.814e-05/0.3136, allocations: 4 kB / 436.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.847e-05/0.3137, allocations: 7.875 kB / 436.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001104/0.3138, allocations: 13.86 kB / 436.5 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.359e-05/0.3139, allocations: 32.38 kB / 436.5 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.48e-05/0.3139, allocations: 2.812 kB / 436.5 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.6e-05/0.314, allocations: 19.39 kB / 436.5 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.148e-05/0.314, allocations: 16.48 kB / 436.6 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.3141, allocations: 2.688 kB / 436.6 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.114e-05/0.3141, allocations: 0 / 436.6 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.953e-05/0.3141, allocations: 13.84 kB / 436.6 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.005e-05/0.3141, allocations: 18 kB / 436.6 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.407e-05/0.3142, allocations: 24.02 kB / 436.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3142, allocations: 0 / 436.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3142, allocations: 0 / 436.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.3142, allocations: 0 / 436.6 MB, free: 39.07 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000397/0.3146, allocations: 358.2 kB / 437 MB, free: 38.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3147, allocations: 8.562 kB / 437 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.25e-05/0.3147, allocations: 37.53 kB / 437 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.641e-05/0.3148, allocations: 7.562 kB / 437 MB, free: 38.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.937e-05/0.3148, allocations: 174 kB / 437.2 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.3149, allocations: 7.938 kB / 437.2 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.3149, allocations: 8.297 kB / 437.2 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.315, allocations: 46.55 kB / 437.2 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.315, allocations: 6.719 kB / 437.3 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.315, allocations: 4 kB / 437.3 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.315, allocations: 0 / 437.3 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.441e-05/0.3151, allocations: 12.59 kB / 437.3 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003619/0.3155, allocations: 281 kB / 437.5 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.3156, allocations: 57.19 kB / 437.6 MB, free: 38.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.085e-05/0.3157, allocations: 18.06 kB / 437.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.3157, allocations: 0 / 437.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.399e-05/0.3157, allocations: 34.56 kB / 437.7 MB, free: 38.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.3157, allocations: 0 / 437.7 MB, free: 38.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001614/0.3159, allocations: 66.64 kB / 437.7 MB, free: 37.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.3159, allocations: 54.59 kB / 437.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.154e-05/0.316, allocations: 122.6 kB / 437.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.166e-06/0.316, allocations: 25.7 kB / 437.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.773e-05/0.3161, allocations: 94.12 kB / 438 MB, free: 37.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.3161, allocations: 18 kB / 438 MB, free: 37.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.3161, allocations: 16.75 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.272e-05/0.3162, allocations: 328.9 kB / 438.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.416e-05/0.3162, allocations: 10.06 kB / 438.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.148e-05/0.3162, allocations: 25.25 kB / 438.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002601/0.3165, allocations: 69 kB / 438.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3165, allocations: 4 kB / 438.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001028/0.3166, allocations: 83.62 kB / 438.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.3166, allocations: 4.938 kB / 438.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3166, allocations: 2.562 kB / 438.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3167, allocations: 0 / 438.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.964e-05/0.3168, allocations: 19.66 kB / 438.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.3168, allocations: 3.188 kB / 438.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.843e-05/0.3168, allocations: 2.656 kB / 438.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.3168, allocations: 2.844 kB / 438.6 MB, free: 37.19 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw:VARIABLE(start = 10.0 fixed = true ) 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.317, allocations: 134 kB / 438.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.317, allocations: 6.812 kB / 438.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.317, allocations: 11.23 kB / 438.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.317, allocations: 2.594 kB / 438.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.317, allocations: 0 / 438.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.317, allocations: 0 / 438.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.3172, allocations: 171 kB / 438.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3172, allocations: 0 / 438.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.019e-05/0.3173, allocations: 14.69 kB / 438.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.3173, allocations: 5.953 kB / 438.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.3173, allocations: 0 / 438.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3173, allocations: 0 / 438.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3173, allocations: 0 / 438.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.3174, allocations: 171.5 kB / 439.1 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.3175, allocations: 84.91 kB / 439.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.3175, allocations: 3.984 kB / 439.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.701e-05/0.3175, allocations: 4.062 kB / 439.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.255e-05/0.3176, allocations: 7.031 kB / 439.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.3176, allocations: 0 / 439.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.73e-05/0.3176, allocations: 104.1 kB / 439.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3176, allocations: 0 / 439.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.3178, allocations: 5.656 kB / 439.3 MB, free: 36.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Ta,Tw) * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002714/0.3181, allocations: 0.698 MB / 440 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.3182, allocations: 32.19 kB / 440 MB, free: 35.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3182, allocations: 2.5 kB / 440 MB, free: 35.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.942e-05/0.3183, allocations: 13.53 kB / 440 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.3185, allocations: 7.938 kB / 440.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008655/0.3194, allocations: 1.355 MB / 441.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.3195, allocations: 0.6865 MB / 442.1 MB, free: 33.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.593e-05/0.3195, allocations: 3.938 kB / 442.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.3196, allocations: 21.42 kB / 442.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3196, allocations: 0 / 442.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01739/0.337, allocations: 1.435 MB / 443.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.48/8.817, allocations: 15.39 kB / 443.6 MB, free: 33.46 MB / 350.1 MB (rm -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M2_PhasorDomain_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)