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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009765/0.0009765, allocations: 80.44 kB / 19.95 MB, free: 4.617 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008174/0.0008174, allocations: 165.2 kB / 23.23 MB, free: 1.332 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9118/0.9118, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.06123/0.06123, allocations: 18.13 MB / 278.1 MB, free: 11.55 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 415.1 MB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.747e-05/1.887e-05, allocations: 3.594 kB / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001364/0.001383, allocations: 0.5809 MB / 415.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001943/0.001577, allocations: 69.75 kB / 415.7 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.196e-05/0.001609, allocations: 0 / 415.7 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.84e-05/0.001627, allocations: 5.312 kB / 415.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 8.336e-05/0.001711, allocations: 1.734 kB / 415.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.001869, allocations: 22.23 kB / 415.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 7.796e-05/0.001947, allocations: 42.72 kB / 415.8 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.833e-05/0.001996, allocations: 2.938 kB / 415.8 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.026e-05/0.002026, allocations: 24.92 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.702e-05/0.002113, allocations: 21.33 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.002136, allocations: 2.75 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.906e-06/0.002145, allocations: 1.375 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.002162, allocations: 9.828 kB / 415.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.002187, allocations: 14.12 kB / 415.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 7.772e-05/0.002264, allocations: 34.33 kB / 415.9 MB, free: 12.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.002267, allocations: 1.375 kB / 415.9 MB, free: 12.31 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.002268, allocations: 0 / 415.9 MB, free: 12.31 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.002272, allocations: 0 / 415.9 MB, free: 12.31 MB / 330.7 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.0003066/0.002579, allocations: 298.1 kB / 416.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.002623, allocations: 10.52 kB / 416.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.808e-05/0.002651, allocations: 38.19 kB / 416.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.529e-05/0.002676, allocations: 9.016 kB / 416.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.912e-05/0.002735, allocations: 119.6 kB / 416.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.002746, allocations: 3.125 kB / 416.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.002765, allocations: 7.125 kB / 416.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.002879, allocations: 60.58 kB / 416.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.002887, allocations: 4.672 kB / 416.4 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.002897, allocations: 11.94 kB / 416.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.002902, allocations: 1.375 kB / 416.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.583e-05/0.002967, allocations: 34.77 kB / 416.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003491/0.003316, allocations: 259.1 kB / 416.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.003521, allocations: 97.62 kB / 416.8 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.419e-05/0.003565, allocations: 31.23 kB / 416.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.003584, allocations: 5.312 kB / 416.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.245e-05/0.003597, allocations: 32.69 kB / 416.9 MB, free: 11.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 8.22e-07/0.003598, allocations: 7.938 kB / 416.9 MB, free: 11.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001926/0.00379, allocations: 106.7 kB / 417 MB, free: 11.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.032e-05/0.003811, allocations: 57.7 kB / 417.1 MB, free: 11.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.658e-05/0.003867, allocations: 116.8 kB / 417.2 MB, free: 11.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.141e-06/0.003873, allocations: 25.7 kB / 417.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.291e-05/0.003906, allocations: 92.23 kB / 417.3 MB, free: 11.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.003924, allocations: 42.73 kB / 417.3 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/0.003956, allocations: 24.64 kB / 417.4 MB, free: 11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.114e-05/0.003987, allocations: 320.3 kB / 417.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.95e-05/0.004016, allocations: 16.64 kB / 417.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.042e-05/0.004057, allocations: 36.94 kB / 417.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.004317, allocations: 131.6 kB / 417.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.004319, allocations: 1.344 kB / 417.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001083/0.004427, allocations: 107.3 kB / 417.9 MB, free: 10.53 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.004439, allocations: 9.25 kB / 418 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.004445, allocations: 1.438 kB / 418 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.004456, allocations: 1.344 kB / 418 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.164e-05/0.004538, allocations: 33.48 kB / 418 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.004543, allocations: 0 / 418 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.288e-05/0.004566, allocations: 11.62 kB / 418 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.004573, allocations: 2.938 kB / 418 MB, free: 10.52 MB / 330.7 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.000113/0.004686, allocations: 122.2 kB / 418.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/0.004701, allocations: 10.95 kB / 418.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.004837, allocations: 106.8 kB / 418.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.00484, allocations: 4.656 kB / 418.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.004844, allocations: 2.75 kB / 418.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.004847, allocations: 0.6094 kB / 418.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.004948, allocations: 158.2 kB / 418.4 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.00495, allocations: 1.406 kB / 418.4 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.195e-05/0.005042, allocations: 36.23 kB / 418.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.005044, allocations: 1.5 kB / 418.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.005053, allocations: 0.7031 kB / 418.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.005054, allocations: 5.438 kB / 418.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.005055, allocations: 0 / 418.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.005216, allocations: 232.1 kB / 418.7 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.905e-06/0.005223, allocations: 7.453 kB / 418.7 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.005235, allocations: 1.406 kB / 418.7 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.386e-05/0.005269, allocations: 6.438 kB / 418.7 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.517e-05/0.005284, allocations: 4.734 kB / 418.7 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.005288, allocations: 3.141 kB / 418.7 MB, free: 9.945 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.16e-05/0.00531, allocations: 91.39 kB / 418.8 MB, free: 9.867 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00531, allocations: 0 / 418.8 MB, free: 9.867 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001634/0.005473, allocations: 16.41 kB / 418.8 MB, free: 9.863 MB / 330.7 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.0002205/0.005694, allocations: 0.7634 MB / 419.6 MB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.005808, allocations: 67.34 kB / 419.6 MB, free: 9.137 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.005809, allocations: 0 / 419.6 MB, free: 9.137 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.311e-05/0.005842, allocations: 32.34 kB / 419.7 MB, free: 9.129 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001551/0.005997, allocations: 6.219 kB / 419.7 MB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008738/0.006871, allocations: 1.487 MB / 421.2 MB, free: 7.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.121e-05/0.006922, allocations: 82.83 kB / 421.2 MB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.77e-05/0.00695, allocations: 5.562 kB / 421.2 MB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.365e-05/0.006993, allocations: 27.41 kB / 421.3 MB, free: 7.727 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.006994, allocations: 0 / 421.3 MB, free: 7.727 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01491/0.0219, allocations: 2.378 MB / 423.6 MB, free: 6.812 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.779/6.801, allocations: 16.98 kB / 423.7 MB, free: 6.801 MB / 330.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M1_TimeDomain_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.693652597256005] Failed to read output from testmodel.py, exit status != 0: 6.883580074645579 6.893520865 6.88921476 Calling exit ...