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.0008375/0.0008375, allocations: 72.52 kB / 19.95 MB, free: 4.613 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.0008789/0.0008789, allocations: 169.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.9047/0.9047, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.06311/0.06311, allocations: 18.14 MB / 278.1 MB, free: 11.54 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 2.124e-06/2.124e-06, allocations: 0 / 415 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.14e-05/2.353e-05, allocations: 3.703 kB / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.00119/0.001214, allocations: 0.5818 MB / 415.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001677/0.001381, allocations: 61.64 kB / 415.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.735e-05/0.001409, allocations: 1.375 kB / 415.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.598e-05/0.001425, allocations: 3.938 kB / 415.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.327e-05/0.001488, allocations: 6.375 kB / 415.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001361/0.001624, allocations: 26.42 kB / 415.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 6.721e-05/0.001691, allocations: 38.73 kB / 415.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.001737, allocations: 3.219 kB / 415.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.763e-05/0.001764, allocations: 17.36 kB / 415.8 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.859e-05/0.001863, allocations: 24.7 kB / 415.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.001888, allocations: 2.75 kB / 415.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.001899, allocations: 2.75 kB / 415.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.98e-05/0.001918, allocations: 3.953 kB / 415.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.896e-05/0.001947, allocations: 24.27 kB / 415.8 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 7.594e-05/0.002023, allocations: 32.62 kB / 415.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.002025, allocations: 5.375 kB / 415.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.002027, allocations: 0.75 kB / 415.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.002032, allocations: 0 / 415.9 MB, free: 12.28 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.0003222/0.002354, allocations: 293.7 kB / 416.2 MB, free: 12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.002395, allocations: 14.45 kB / 416.2 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.85e-05/0.002424, allocations: 37.44 kB / 416.2 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.581e-05/0.00245, allocations: 9.672 kB / 416.2 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.834e-05/0.002508, allocations: 115 kB / 416.3 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.00252, allocations: 11.05 kB / 416.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.002542, allocations: 7.844 kB / 416.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.002662, allocations: 65.27 kB / 416.4 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.002668, allocations: 192 / 416.4 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.002678, allocations: 9.188 kB / 416.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.002684, allocations: 1.719 kB / 416.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.559e-05/0.00275, allocations: 34.39 kB / 416.5 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003286/0.003078, allocations: 258.7 kB / 416.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.003301, allocations: 100.9 kB / 416.8 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.694e-05/0.003348, allocations: 33.19 kB / 416.9 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.003364, allocations: 1.906 kB / 416.9 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.378e-05/0.003377, allocations: 33.7 kB / 416.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.003379, allocations: 0 / 416.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001993/0.003578, allocations: 108.4 kB / 417 MB, free: 11.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.353e-05/0.003602, allocations: 52.69 kB / 417 MB, free: 11.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.547e-05/0.003657, allocations: 121.5 kB / 417.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-06/0.003663, allocations: 25.7 kB / 417.2 MB, free: 11.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.991e-05/0.003693, allocations: 88.14 kB / 417.3 MB, free: 11.03 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.003717, allocations: 50.59 kB / 417.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.00375, allocations: 24.5 kB / 417.3 MB, free: 10.96 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.26e-05/0.003782, allocations: 323.8 kB / 417.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.204e-05/0.003814, allocations: 20.86 kB / 417.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.852e-05/0.003853, allocations: 37.62 kB / 417.7 MB, free: 10.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.004131, allocations: 124.5 kB / 417.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.004133, allocations: 0 / 417.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001134/0.004247, allocations: 111.2 kB / 418 MB, free: 10.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.004261, allocations: 9.125 kB / 418 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.004266, allocations: 1.406 kB / 418 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.00428, allocations: 1.25 kB / 418 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-05/0.004366, allocations: 34.89 kB / 418 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.004372, allocations: 1.188 kB / 418 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.215e-05/0.004394, allocations: 9.109 kB / 418 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-06/0.004402, allocations: 4.891 kB / 418 MB, free: 10.48 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.0001384/0.00454, allocations: 127.7 kB / 418.1 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/0.004555, allocations: 6.703 kB / 418.1 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.004697, allocations: 101.1 kB / 418.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.004699, allocations: 1.375 kB / 418.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.004703, allocations: 0 / 418.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.004707, allocations: 0.7031 kB / 418.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001072/0.004814, allocations: 160.6 kB / 418.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.004816, allocations: 0 / 418.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.004917, allocations: 33.56 kB / 418.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.004919, allocations: 0 / 418.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.587e-06/0.004928, allocations: 5.375 kB / 418.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.00493, allocations: 5.375 kB / 418.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.004932, allocations: 0.7031 kB / 418.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.005092, allocations: 226.3 kB / 418.7 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.118e-06/0.005101, allocations: 7.641 kB / 418.7 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.005114, allocations: 2.078 kB / 418.7 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.545e-05/0.005149, allocations: 9.359 kB / 418.7 MB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.574e-05/0.005165, allocations: 9.922 kB / 418.7 MB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.005169, allocations: 2.547 kB / 418.7 MB, free: 9.914 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.107e-05/0.00519, allocations: 90.3 kB / 418.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00519, allocations: 1.375 kB / 418.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001507/0.00534, allocations: 17.84 kB / 418.8 MB, free: 9.828 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.0002306/0.005571, allocations: 0.7568 MB / 419.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001246/0.005696, allocations: 64.03 kB / 419.6 MB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.005697, allocations: 0 / 419.6 MB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.574e-05/0.005733, allocations: 35.69 kB / 419.7 MB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.005895, allocations: 5.438 kB / 419.7 MB, free: 9.094 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009298/0.006825, allocations: 1.491 MB / 421.2 MB, free: 7.785 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.087e-05/0.006876, allocations: 77.06 kB / 421.2 MB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.141e-05/0.006907, allocations: 11.08 kB / 421.2 MB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.006958, allocations: 27.03 kB / 421.3 MB, free: 7.691 MB / 330.7 MB Notification: Performance of SimCode: time 7.51e-07/0.006958, allocations: 0 / 421.3 MB, free: 7.691 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0146/0.02156, allocations: 2.384 MB / 423.7 MB, free: 6.777 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.773/6.794, allocations: 10.8 kB / 423.7 MB, free: 6.77 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M1_TimeDomain_fmu --startTime=0 --stopTime=100 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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: 9.236201447434723] Failed to read output from testmodel.py, exit status != 0: 6.875013363547623 6.890330898 6.886306242 Calling exit ...