Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.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.0008714/0.0008714, allocations: 76.5 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.0008387/0.0008387, allocations: 169.2 kB / 23.23 MB, free: 1.336 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.8909/0.8909, allocations: 177.1 MB / 203.5 MB, free: 5.758 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.0612/0.0612, allocations: 18.12 MB / 278.1 MB, free: 11.57 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_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.625e-06/2.625e-06, allocations: 0 / 415.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.24e-05/2.503e-05, allocations: 3.484 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002877/0.002902, allocations: 1.816 MB / 417.7 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003869/0.003289, allocations: 190.3 kB / 417.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.964e-05/0.003379, allocations: 9.375 kB / 417.9 MB, free: 11 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.003508, allocations: 34.47 kB / 417.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 7.956e-05/0.003588, allocations: 22.75 kB / 417.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.003832, allocations: 93.53 kB / 418 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002923/0.004125, allocations: 241.1 kB / 418.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.00427, allocations: 38.12 kB / 418.3 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.99e-05/0.00436, allocations: 77.69 kB / 418.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.004474, allocations: 76.47 kB / 418.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.365e-05/0.004518, allocations: 19.34 kB / 418.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.293e-05/0.004541, allocations: 19.22 kB / 418.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.004577, allocations: 51.91 kB / 418.5 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.004627, allocations: 60.62 kB / 418.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.004845, allocations: 196.7 kB / 418.8 MB, free: 10.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.004849, allocations: 4 kB / 418.8 MB, free: 10.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.004851, allocations: 0 / 418.8 MB, free: 10.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.004856, allocations: 1.531 kB / 418.8 MB, free: 10.55 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.0005746/0.005431, allocations: 446.3 kB / 419.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.005473, allocations: 8.797 kB / 419.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.215e-05/0.005515, allocations: 53.69 kB / 419.3 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.005555, allocations: 27.08 kB / 419.3 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.005785, allocations: 183 kB / 419.5 MB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.005813, allocations: 19.73 kB / 419.5 MB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.005845, allocations: 24.62 kB / 419.5 MB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.006134, allocations: 233.2 kB / 419.7 MB, free: 9.801 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.006145, allocations: 4.688 kB / 419.7 MB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.006161, allocations: 14.92 kB / 419.8 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.006168, allocations: 14.14 kB / 419.8 MB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.006391, allocations: 155.4 kB / 419.9 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009708/0.007361, allocations: 0.9499 MB / 420.9 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.007584, allocations: 152 kB / 421 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.848e-05/0.007672, allocations: 67.52 kB / 421.1 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.0077, allocations: 4.281 kB / 421.1 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.185e-05/0.007712, allocations: 32.53 kB / 421.1 MB, free: 8.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.007713, allocations: 0 / 421.1 MB, free: 8.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003665/0.008079, allocations: 246 kB / 421.4 MB, free: 8.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/0.008103, allocations: 58.12 kB / 421.4 MB, free: 8.684 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.008278, allocations: 220.2 kB / 421.6 MB, free: 8.539 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.008291, allocations: 31.31 kB / 421.7 MB, free: 8.504 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.008347, allocations: 159.1 kB / 421.8 MB, free: 8.363 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/0.008384, allocations: 83.41 kB / 421.9 MB, free: 8.297 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.629e-05/0.00845, allocations: 75.47 kB / 422 MB, free: 8.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.417e-05/0.008494, allocations: 335.9 kB / 422.3 MB, free: 7.926 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.008611, allocations: 74.59 kB / 422.4 MB, free: 7.902 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.00874, allocations: 163.3 kB / 422.5 MB, free: 7.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009377/0.009678, allocations: 486.9 kB / 423 MB, free: 7.523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.009683, allocations: 2.219 kB / 423 MB, free: 7.523 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005054/0.01019, allocations: 306 kB / 423.3 MB, free: 7.387 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.0102, allocations: 14.03 kB / 423.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.01021, allocations: 3.875 kB / 423.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.01023, allocations: 4.812 kB / 423.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.0105, allocations: 75.12 kB / 423.4 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.01051, allocations: 5.625 kB / 423.4 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.01065, allocations: 39.89 kB / 423.5 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.01067, allocations: 10.44 kB / 423.5 MB, free: 7.352 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.000167/0.01083, allocations: 165.2 kB / 423.6 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-05/0.01087, allocations: 17.56 kB / 423.6 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004234/0.0113, allocations: 231.8 kB / 423.9 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.0113, allocations: 2.312 kB / 423.9 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.01131, allocations: 1.156 kB / 423.9 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.01131, allocations: 1.547 kB / 423.9 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003968/0.01171, allocations: 262.6 kB / 424.1 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01171, allocations: 0 / 424.1 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.01199, allocations: 62.5 kB / 424.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.01199, allocations: 1.578 kB / 424.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.01202, allocations: 10.7 kB / 424.2 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.01202, allocations: 1.125 kB / 424.2 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.01202, allocations: 0.7969 kB / 424.2 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/0.01248, allocations: 376.9 kB / 424.6 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.262e-05/0.0125, allocations: 19.8 kB / 424.6 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.01252, allocations: 10.8 kB / 424.6 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.078e-05/0.0126, allocations: 16.94 kB / 424.6 MB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.01267, allocations: 23.78 kB / 424.6 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.01268, allocations: 5.625 kB / 424.6 MB, free: 6.605 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.106e-05/0.01277, allocations: 141.8 kB / 424.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01277, allocations: 0 / 424.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001987/0.01296, allocations: 49.36 kB / 424.8 MB, free: 6.496 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.0004767/0.01344, allocations: 0.9156 MB / 425.8 MB, free: 5.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.01372, allocations: 198.6 kB / 425.9 MB, free: 5.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01372, allocations: 1.25 kB / 425.9 MB, free: 5.676 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.01383, allocations: 90.09 kB / 426 MB, free: 5.648 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.01405, allocations: 34.91 kB / 426.1 MB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.01673, allocations: 2.617 MB / 428.7 MB, free: 3.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.01685, allocations: 141 kB / 428.8 MB, free: 3.668 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.01697, allocations: 27.48 kB / 428.9 MB, free: 3.664 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.01708, allocations: 83.2 kB / 428.9 MB, free: 3.605 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.01708, allocations: 4 kB / 428.9 MB, free: 3.602 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.03904, allocations: 5.375 MB / 434.3 MB, free: 2.117 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.806/6.845, allocations: 7.906 kB / 434.3 MB, free: 2.113 MB / 330.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_with_locks_fmu --startTime=0 --stopTime=200 --stepSize=0.4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.782364523038268] Failed to read output from testmodel.py, exit status != 0: 6.932170298881829 6.938852908 6.931460911 Calling exit ...