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.001373/0.001373, allocations: 100.3 kB / 19.72 MB, free: 1.785 MB / 14.72 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.001557/0.001557, allocations: 206.7 kB / 23.01 MB, free: 4.621 MB / 14.72 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 1.462/1.462, allocations: 230.6 MB / 256.8 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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.1102/0.1102, allocations: 24.04 MB / 337.2 MB, free: 11.32 MB / 270.1 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: 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.002278/0.002278, allocations: 67.89 kB / 474.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3691/0.3714, allocations: 59.58 MB / 0.5217 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002778/0.3741, allocations: 1.811 MB / 0.5234 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004077/0.3746, allocations: 198.1 kB / 0.5236 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.713e-05/0.3747, allocations: 10.12 kB / 0.5236 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.3748, allocations: 33.73 kB / 0.5237 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.522e-05/0.3748, allocations: 14.97 kB / 0.5237 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.375, allocations: 93.66 kB / 0.5238 GB, free: 9.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.3753, allocations: 237 kB / 0.524 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.3754, allocations: 45.3 kB / 0.524 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.015e-05/0.3755, allocations: 89.78 kB / 0.5241 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.3756, allocations: 81.36 kB / 0.5242 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/0.3757, allocations: 19.09 kB / 0.5242 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.416e-05/0.3757, allocations: 23.16 kB / 0.5242 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.284e-05/0.3757, allocations: 52.27 kB / 0.5243 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.336e-05/0.3758, allocations: 79.48 kB / 0.5244 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.376, allocations: 189.2 kB / 0.5246 GB, free: 8.703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.376, allocations: 0.75 kB / 0.5246 GB, free: 8.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.376, allocations: 3.938 kB / 0.5246 GB, free: 8.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.376, allocations: 1.5 kB / 0.5246 GB, free: 8.699 MB / 382.1 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.0006924/0.3767, allocations: 450.7 kB / 0.525 GB, free: 8.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3767, allocations: 11.05 kB / 0.525 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.305e-05/0.3768, allocations: 52.8 kB / 0.525 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.3768, allocations: 33.22 kB / 0.5251 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.3771, allocations: 176.9 kB / 0.5252 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.3771, allocations: 19.62 kB / 0.5253 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.665e-05/0.3771, allocations: 27.62 kB / 0.5253 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003732/0.3775, allocations: 236.2 kB / 0.5255 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3775, allocations: 3.938 kB / 0.5255 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.3775, allocations: 14.28 kB / 0.5255 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.3776, allocations: 4.781 kB / 0.5255 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003293/0.3779, allocations: 156.6 kB / 0.5257 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.3793, allocations: 0.9597 MB / 0.5266 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.3796, allocations: 146.2 kB / 0.5268 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.3798, allocations: 68.48 kB / 0.5268 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.3798, allocations: 6.078 kB / 0.5268 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.332e-05/0.3798, allocations: 37.48 kB / 0.5269 GB, free: 6.996 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.3798, allocations: 0 / 0.5269 GB, free: 6.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005485/0.3803, allocations: 244.8 kB / 0.5271 GB, free: 6.887 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.3804, allocations: 54.06 kB / 0.5272 GB, free: 6.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.3805, allocations: 220.7 kB / 0.5274 GB, free: 6.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.3806, allocations: 30.83 kB / 0.5274 GB, free: 6.645 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.585e-05/0.3806, allocations: 155.7 kB / 0.5275 GB, free: 6.508 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.3807, allocations: 84.27 kB / 0.5276 GB, free: 6.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.511e-05/0.3808, allocations: 75.55 kB / 0.5277 GB, free: 6.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.481e-05/0.3808, allocations: 332.2 kB / 0.528 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.381, allocations: 81.92 kB / 0.5281 GB, free: 6.043 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.3812, allocations: 169.1 kB / 0.5283 GB, free: 5.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.3825, allocations: 468.5 kB / 0.5287 GB, free: 5.676 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3825, allocations: 1.156 kB / 0.5287 GB, free: 5.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000488/0.3829, allocations: 310.2 kB / 0.529 GB, free: 5.535 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.383, allocations: 6.5 kB / 0.529 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.383, allocations: 4.141 kB / 0.529 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.383, allocations: 4.812 kB / 0.529 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/0.3833, allocations: 82.59 kB / 0.5291 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.3833, allocations: 9.812 kB / 0.5291 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.3835, allocations: 39.36 kB / 0.5291 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.3835, allocations: 15.75 kB / 0.5292 GB, free: 5.492 MB / 382.1 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.000151/0.3837, allocations: 144.8 kB / 0.5293 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.3837, allocations: 25.91 kB / 0.5293 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004288/0.3841, allocations: 224.9 kB / 0.5295 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3841, allocations: 2.406 kB / 0.5295 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3841, allocations: 4 kB / 0.5295 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3841, allocations: 1.375 kB / 0.5295 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004284/0.3846, allocations: 265.4 kB / 0.5298 GB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3846, allocations: 5 kB / 0.5298 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.3849, allocations: 63.62 kB / 0.5299 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.3849, allocations: 2.156 kB / 0.5299 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.3849, allocations: 6.094 kB / 0.5299 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3849, allocations: 1.406 kB / 0.5299 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3849, allocations: 0 / 0.5299 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005221/0.3854, allocations: 376.7 kB / 0.5302 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.858e-05/0.3855, allocations: 19.12 kB / 0.5302 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.232e-05/0.3855, allocations: 10.19 kB / 0.5303 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.3857, allocations: 13.3 kB / 0.5303 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.794e-05/0.3857, allocations: 24.34 kB / 0.5303 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.3857, allocations: 4.406 kB / 0.5303 GB, free: 4.742 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.29e-05/0.3858, allocations: 142.8 kB / 0.5304 GB, free: 4.648 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3858, allocations: 1.281 kB / 0.5304 GB, free: 4.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.3861, allocations: 52.14 kB / 0.5305 GB, free: 4.629 MB / 382.1 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.0006774/0.3868, allocations: 0.9186 MB / 0.5314 GB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004078/0.3872, allocations: 195.9 kB / 0.5316 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3872, allocations: 1.219 kB / 0.5316 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.3874, allocations: 93.44 kB / 0.5317 GB, free: 3.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.3877, allocations: 30 kB / 0.5317 GB, free: 3.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.3906, allocations: 2.641 MB / 0.5343 GB, free: 1.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.3907, allocations: 141.4 kB / 0.5344 GB, free: 1.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.3908, allocations: 27.36 kB / 0.5344 GB, free: 1.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.3909, allocations: 76.88 kB / 0.5345 GB, free: 1.734 MB / 382.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3909, allocations: 0 / 0.5345 GB, free: 1.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.4251, allocations: 5.236 MB / 0.5396 GB, free: 0.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.73, allocations: 1.25 kB / 0.5396 GB, free: 0.668 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.374244516715407] Failed to read output from testmodel.py, exit status != 0: 11.83825813094154 11.855469951 11.476261484 Calling exit ...