Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_basic.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.0009903/0.0009903, allocations: 76.52 kB / 19.94 MB, free: 4.602 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: 173.2 kB / 23.22 MB, free: 1.32 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.8798/0.8798, allocations: 177.2 MB / 203.6 MB, free: 5.738 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.061/0.061, allocations: 18.04 MB / 278.1 MB, free: 11.62 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.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009425/0.0009425, allocations: 68.89 kB / 415.8 MB, free: 12.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.09026, allocations: 59.66 MB / 475.5 MB, free: 12.53 MB / 378.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_basic): time 0.002185/0.09245, allocations: 1.816 MB / 477.3 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003601/0.09281, allocations: 187.1 kB / 477.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002303/0.09304, allocations: 3.938 kB / 477.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.09317, allocations: 43.53 kB / 477.5 MB, free: 10.47 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.108e-05/0.09322, allocations: 15.81 kB / 477.5 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001827/0.0934, allocations: 87.88 kB / 477.6 MB, free: 10.37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.0936, allocations: 240.8 kB / 477.8 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.09372, allocations: 56.42 kB / 477.9 MB, free: 10.08 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.527e-05/0.09379, allocations: 79.72 kB / 478 MB, free: 10 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.22e-05/0.09388, allocations: 83.52 kB / 478.1 MB, free: 9.922 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.09391, allocations: 20 kB / 478.1 MB, free: 9.902 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.013e-05/0.09393, allocations: 20 kB / 478.1 MB, free: 9.883 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.36e-05/0.09396, allocations: 55.78 kB / 478.2 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.989e-05/0.09401, allocations: 75.56 kB / 478.2 MB, free: 9.754 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.09419, allocations: 215 kB / 478.4 MB, free: 9.543 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09419, allocations: 0 / 478.4 MB, free: 9.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.09419, allocations: 0 / 478.4 MB, free: 9.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.0942, allocations: 0 / 478.4 MB, free: 9.543 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005794/0.09478, allocations: 445.8 kB / 478.9 MB, free: 9.074 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.09482, allocations: 20.86 kB / 478.9 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.093e-05/0.09486, allocations: 50.73 kB / 478.9 MB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.0949, allocations: 32.8 kB / 479 MB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.09511, allocations: 174.8 kB / 479.1 MB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.09514, allocations: 20.81 kB / 479.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.289e-05/0.09517, allocations: 28.36 kB / 479.2 MB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.09545, allocations: 233.6 kB / 479.4 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.09546, allocations: 3.938 kB / 479.4 MB, free: 8.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.09547, allocations: 8 kB / 479.4 MB, free: 8.453 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.09548, allocations: 4 kB / 479.4 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.09567, allocations: 161 kB / 479.6 MB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.09667, allocations: 0.9469 MB / 480.5 MB, free: 7.289 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.09687, allocations: 142.6 kB / 480.7 MB, free: 7.141 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.486e-05/0.09696, allocations: 72.83 kB / 480.7 MB, free: 7.066 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.09698, allocations: 4 kB / 480.8 MB, free: 7.062 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.097, allocations: 30.56 kB / 480.8 MB, free: 7.023 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.097, allocations: 0 / 480.8 MB, free: 7.023 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003436/0.09735, allocations: 237.7 kB / 481 MB, free: 6.785 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.09737, allocations: 55.41 kB / 481.1 MB, free: 6.719 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.0975, allocations: 216.2 kB / 481.3 MB, free: 6.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.09752, allocations: 33.7 kB / 481.3 MB, free: 6.461 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.821e-05/0.09759, allocations: 152.4 kB / 481.5 MB, free: 6.309 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.09763, allocations: 87.33 kB / 481.5 MB, free: 6.223 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.337e-05/0.09769, allocations: 73.64 kB / 481.6 MB, free: 6.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.435e-05/0.09776, allocations: 334.8 kB / 481.9 MB, free: 5.809 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.081e-05/0.09785, allocations: 75.75 kB / 482 MB, free: 5.734 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.09798, allocations: 170.1 kB / 482.2 MB, free: 5.531 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007504/0.09873, allocations: 465.2 kB / 482.6 MB, free: 5.039 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.09873, allocations: 0 / 482.6 MB, free: 5.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003003/0.09903, allocations: 309.2 kB / 482.9 MB, free: 4.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.09905, allocations: 11.94 kB / 483 MB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.09906, allocations: 4 kB / 483 MB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.09907, allocations: 4 kB / 483 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.09923, allocations: 75.91 kB / 483 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.09924, allocations: 7.938 kB / 483 MB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.02e-05/0.09932, allocations: 39.72 kB / 483.1 MB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.09934, allocations: 20 kB / 483.1 MB, free: 4.57 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) \"Connector of Real output signal\" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001409/0.09948, allocations: 150 kB / 483.2 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.09951, allocations: 27.8 kB / 483.3 MB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002594/0.09977, allocations: 223.3 kB / 483.5 MB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.09977, allocations: 0 / 483.5 MB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.09977, allocations: 4 kB / 483.5 MB, free: 4.148 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.09978, allocations: 0 / 483.5 MB, free: 4.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002643/0.1, allocations: 260.5 kB / 483.8 MB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1, allocations: 4 kB / 483.8 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.1002, allocations: 55.97 kB / 483.8 MB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.1002, allocations: 0 / 483.8 MB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.1002, allocations: 11.98 kB / 483.8 MB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1002, allocations: 0 / 483.8 MB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1002, allocations: 0 / 483.8 MB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.1006, allocations: 373.9 kB / 484.2 MB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.751e-05/0.1006, allocations: 19.84 kB / 484.2 MB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.1006, allocations: 8 kB / 484.2 MB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.039e-05/0.1007, allocations: 11.98 kB / 484.2 MB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.1007, allocations: 23.97 kB / 484.2 MB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.1007, allocations: 7.984 kB / 484.3 MB, free: 3.328 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.474e-05/0.1008, allocations: 143.2 kB / 484.4 MB, free: 3.188 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1008, allocations: 0 / 484.4 MB, free: 3.188 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001897/0.101, allocations: 47.89 kB / 484.4 MB, free: 3.141 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.0006251/0.1016, allocations: 0.9079 MB / 485.4 MB, free: 2.207 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002465/0.1019, allocations: 198.9 kB / 485.5 MB, free: 2.016 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1019, allocations: 0 / 485.5 MB, free: 2.016 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.171e-05/0.102, allocations: 87.89 kB / 485.6 MB, free: 1.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.1022, allocations: 27.23 kB / 485.7 MB, free: 1.906 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.1041, allocations: 2.638 MB / 488.3 MB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.706e-05/0.1042, allocations: 142.4 kB / 488.4 MB, free: 14.96 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.351e-05/0.1042, allocations: 34.28 kB / 488.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.53e-05/0.1043, allocations: 68.48 kB / 488.5 MB, free: 14.86 MB / 394.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1043, allocations: 4 kB / 488.5 MB, free: 14.86 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.1234, allocations: 5.321 MB / 493.9 MB, free: 9.656 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.476/6.599, allocations: 2.969 kB / 493.9 MB, free: 9.656 MB / 394.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_basic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_basic_fmu --startTime=0 --stopTime=200 --stepSize=0.4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Cascade_basic.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.44942522700876] Failed to read output from testmodel.py, exit status != 0: 6.679193289019167 6.688486466 6.592286082 Calling exit ...