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.0007727/0.0007727, 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.0007721/0.0007721, 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.9198/0.9198, allocations: 177.1 MB / 203.5 MB, free: 5.73 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.06081/0.06081, allocations: 18.13 MB / 278.1 MB, free: 11.52 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: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 0 / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.931e-05, allocations: 2.281 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_basic): time 0.004062/0.004092, allocations: 1.814 MB / 417.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006953/0.004787, allocations: 190.3 kB / 417.8 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.005, allocations: 5.312 kB / 417.9 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001941/0.005194, allocations: 34.44 kB / 417.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.005322, allocations: 25.16 kB / 417.9 MB, free: 10.94 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004368/0.005759, allocations: 97.27 kB / 418 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004921/0.006251, allocations: 239.6 kB / 418.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.006477, allocations: 36.11 kB / 418.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.006632, allocations: 82.27 kB / 418.4 MB, free: 10.72 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.006798, allocations: 65.78 kB / 418.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.851e-05/0.006867, allocations: 19.03 kB / 418.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.291e-05/0.0069, allocations: 19.59 kB / 418.5 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.432e-05/0.006954, allocations: 47.34 kB / 418.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.498e-05/0.007039, allocations: 63.98 kB / 418.6 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.007384, allocations: 200.4 kB / 418.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.007391, allocations: 5.281 kB / 418.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.007393, allocations: 0 / 418.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.007406, allocations: 0 / 418.8 MB, free: 10.54 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008791/0.008285, allocations: 445.8 kB / 419.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.008337, allocations: 18.39 kB / 419.2 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.267e-05/0.0084, allocations: 53.58 kB / 419.3 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.85e-05/0.008468, allocations: 26.42 kB / 419.3 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.008815, allocations: 185.7 kB / 419.5 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.467e-05/0.00886, allocations: 18.34 kB / 419.5 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.008912, allocations: 25.02 kB / 419.5 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.009264, allocations: 230.5 kB / 419.7 MB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.009276, allocations: 2.031 kB / 419.8 MB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.009292, allocations: 9.875 kB / 419.8 MB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.009303, allocations: 9.75 kB / 419.8 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.009542, allocations: 155.8 kB / 419.9 MB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.01067, allocations: 0.9434 MB / 420.9 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.01089, allocations: 151.2 kB / 421 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.218e-05/0.01099, allocations: 67.73 kB / 421.1 MB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.01102, allocations: 2.781 kB / 421.1 MB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.33e-05/0.01103, allocations: 40.39 kB / 421.1 MB, free: 8.836 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.325e-06/0.01103, allocations: 0 / 421.1 MB, free: 8.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003803/0.01141, allocations: 232.7 kB / 421.3 MB, free: 8.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.01144, allocations: 58.38 kB / 421.4 MB, free: 8.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.01159, allocations: 221.5 kB / 421.6 MB, free: 8.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.0116, allocations: 29.7 kB / 421.7 MB, free: 8.484 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.894e-05/0.01167, allocations: 155.8 kB / 421.8 MB, free: 8.348 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.078e-05/0.01171, allocations: 79.27 kB / 421.9 MB, free: 8.285 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-05/0.01179, allocations: 76.14 kB / 422 MB, free: 8.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.869e-05/0.01184, allocations: 335.7 kB / 422.3 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.01195, allocations: 71.78 kB / 422.4 MB, free: 7.891 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.01208, allocations: 169.6 kB / 422.5 MB, free: 7.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008595/0.01294, allocations: 470.1 kB / 423 MB, free: 7.512 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.01295, allocations: 1.062 kB / 423 MB, free: 7.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003355/0.01328, allocations: 301.5 kB / 423.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.0133, allocations: 10.86 kB / 423.3 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.01331, allocations: 7.656 kB / 423.3 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.01333, allocations: 5.703 kB / 423.3 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.0135, allocations: 77.77 kB / 423.4 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.01351, allocations: 5.578 kB / 423.4 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.796e-05/0.0136, allocations: 35.59 kB / 423.4 MB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.01362, allocations: 14.56 kB / 423.4 MB, free: 7.336 MB / 330.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.0001592/0.01377, allocations: 153.8 kB / 423.6 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/0.01381, allocations: 17.66 kB / 423.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003082/0.01411, allocations: 228.3 kB / 423.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.01412, allocations: 2.406 kB / 423.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.01412, allocations: 0 / 423.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.01413, allocations: 6.344 kB / 423.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/0.01442, allocations: 262.5 kB / 424.1 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.01443, allocations: 0 / 424.1 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.0146, allocations: 61.36 kB / 424.1 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.01461, allocations: 1 kB / 424.1 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.01463, allocations: 15.41 kB / 424.2 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.01463, allocations: 1.406 kB / 424.2 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01463, allocations: 0 / 424.2 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003856/0.01502, allocations: 371.2 kB / 424.5 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.01504, allocations: 19.06 kB / 424.5 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.01506, allocations: 11.06 kB / 424.6 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.481e-05/0.01514, allocations: 8.125 kB / 424.6 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.0152, allocations: 22.94 kB / 424.6 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.01521, allocations: 9.219 kB / 424.6 MB, free: 6.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.892e-05/0.01529, allocations: 138.5 kB / 424.7 MB, free: 6.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01529, allocations: 4 kB / 424.7 MB, free: 6.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002303/0.01552, allocations: 48.05 kB / 424.8 MB, free: 6.48 MB / 330.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.0004581/0.01598, allocations: 0.917 MB / 425.7 MB, free: 5.715 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003091/0.01629, allocations: 191 kB / 425.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.01629, allocations: 0 / 425.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.01639, allocations: 88.8 kB / 426 MB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.01664, allocations: 28.16 kB / 426 MB, free: 5.617 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.0188, allocations: 2.613 MB / 428.6 MB, free: 3.738 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.22e-05/0.01889, allocations: 135.4 kB / 428.7 MB, free: 3.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.092e-05/0.01898, allocations: 32.03 kB / 428.8 MB, free: 3.652 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.856e-05/0.01907, allocations: 73.8 kB / 428.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01907, allocations: 1.375 kB / 428.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.03861, allocations: 5.34 MB / 434.2 MB, free: 2.176 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.819/6.857, allocations: 6.641 kB / 434.2 MB, free: 2.176 MB / 330.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.787810486741364] Failed to read output from testmodel.py, exit status != 0: 6.938617789186537 6.946469006 6.937045811 Calling exit ...