Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.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.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",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.001125/0.001125, 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.001118/0.001118, allocations: 193.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.295/1.295, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2096/0.2096, allocations: 22.34 MB / 312.7 MB, free: 12.56 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.89 kB / 380.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2702, allocations: 54.93 MB / 435.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.00174/0.272, allocations: 0.5873 MB / 436.4 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001989/0.2722, allocations: 64.36 kB / 436.5 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.63e-05/0.2723, allocations: 2.594 kB / 436.5 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.725e-05/0.2723, allocations: 3.938 kB / 436.5 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.193e-05/0.2724, allocations: 3.938 kB / 436.5 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001456/0.2726, allocations: 26.05 kB / 436.5 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.713e-05/0.2726, allocations: 35.5 kB / 436.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.412e-05/0.2727, allocations: 7.344 kB / 436.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.288e-05/0.2727, allocations: 28.95 kB / 436.6 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.383e-05/0.2728, allocations: 25.22 kB / 436.6 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.2728, allocations: 2.781 kB / 436.6 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.087e-05/0.2728, allocations: 2.75 kB / 436.6 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.918e-05/0.2729, allocations: 14.52 kB / 436.7 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.587e-05/0.2729, allocations: 24.42 kB / 436.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.837e-05/0.273, allocations: 27.09 kB / 436.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.273, allocations: 0 / 436.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.273, allocations: 0 / 436.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.273, allocations: 3.938 kB / 436.7 MB, free: 39.09 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003875/0.2734, allocations: 372.7 kB / 437.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2734, allocations: 8.5 kB / 437.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.988e-05/0.2735, allocations: 37.66 kB / 437.1 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.72e-05/0.2735, allocations: 11.81 kB / 437.1 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.281e-05/0.2736, allocations: 179.2 kB / 437.3 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.2736, allocations: 7.266 kB / 437.3 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.298e-05/0.2736, allocations: 7.312 kB / 437.3 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.2738, allocations: 68.94 kB / 437.4 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2738, allocations: 0 / 437.4 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.2738, allocations: 4 kB / 437.4 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.2738, allocations: 2.906 kB / 437.4 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.613e-05/0.2739, allocations: 36.22 kB / 437.4 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003257/0.2742, allocations: 292.8 kB / 437.7 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.2745, allocations: 101.1 kB / 437.8 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.303e-05/0.2745, allocations: 35.64 kB / 437.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.2746, allocations: 2.625 kB / 437.9 MB, free: 38.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.2746, allocations: 30.56 kB / 437.9 MB, free: 37.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.434e-06/0.2746, allocations: 112 / 437.9 MB, free: 37.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002361/0.2748, allocations: 107 kB / 438 MB, free: 37.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.2749, allocations: 53.97 kB / 438 MB, free: 37.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.155e-05/0.2749, allocations: 122 kB / 438.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.275, allocations: 25.7 kB / 438.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.275, allocations: 91.64 kB / 438.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.2751, allocations: 41.98 kB / 438.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.2751, allocations: 33.09 kB / 438.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.664e-05/0.2752, allocations: 324.8 kB / 438.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.82e-05/0.2752, allocations: 17.88 kB / 438.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.301e-05/0.2753, allocations: 39.59 kB / 438.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000381/0.2757, allocations: 126.8 kB / 438.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2757, allocations: 0 / 438.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001464/0.2758, allocations: 106.9 kB / 438.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.2758, allocations: 2.812 kB / 439 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2759, allocations: 3.062 kB / 439 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2759, allocations: 4.031 kB / 439 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.276, allocations: 35.11 kB / 439 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.276, allocations: 3.438 kB / 439 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.936e-05/0.2761, allocations: 11.28 kB / 439 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-06/0.2761, allocations: 3.594 kB / 439 MB, free: 37.09 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: I:VARIABLE(start = 0.0 fixed = true ) type: Real 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 (14): * Single equations (assignments): 14 * 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.0001452/0.2762, allocations: 125.4 kB / 439.1 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.2763, allocations: 9.75 kB / 439.1 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000156/0.2764, allocations: 113.2 kB / 439.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.2764, allocations: 2.531 kB / 439.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2764, allocations: 0 / 439.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2764, allocations: 3.328 kB / 439.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.2766, allocations: 179.9 kB / 439.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2766, allocations: 0 / 439.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.2768, allocations: 33.36 kB / 439.5 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2768, allocations: 0 / 439.5 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.2768, allocations: 8 kB / 439.5 MB, free: 36.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2768, allocations: 2.781 kB / 439.5 MB, free: 36.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2768, allocations: 0 / 439.5 MB, free: 36.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.277, allocations: 224.2 kB / 439.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.381e-05/0.2771, allocations: 84.05 kB / 439.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.2771, allocations: 2.781 kB / 439.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.812e-05/0.2771, allocations: 7.984 kB / 439.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.2772, allocations: 6.141 kB / 439.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.2772, allocations: 7.094 kB / 439.8 MB, free: 36.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.012e-05/0.2772, allocations: 91.14 kB / 439.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2772, allocations: 0 / 439.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.2774, allocations: 19.38 kB / 439.9 MB, free: 36.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,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 (11): * Single equations (assignments): 11 * 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.0003474/0.2778, allocations: 0.7572 MB / 440.7 MB, free: 35.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.278, allocations: 71.7 kB / 440.7 MB, free: 35.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.278, allocations: 0 / 440.7 MB, free: 35.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.46e-05/0.278, allocations: 36.89 kB / 440.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.2782, allocations: 9.094 kB / 440.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.2793, allocations: 1.502 MB / 442.3 MB, free: 34.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.2795, allocations: 0.6936 MB / 443 MB, free: 33.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.2e-05/0.2795, allocations: 9.891 kB / 443 MB, free: 33.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.645e-05/0.2796, allocations: 18.31 kB / 443 MB, free: 33.55 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2796, allocations: 0 / 443 MB, free: 33.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01736/0.2969, allocations: 1.703 MB / 444.7 MB, free: 33.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.477/8.774, allocations: 28.17 kB / 444.7 MB, free: 33.16 MB / 350.1 MB (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M1_TimeDomain_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)