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.001315/0.001315, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001514/0.001514, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1028/0.1028, allocations: 22.94 MB / 336.1 MB, free: 12.4 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="cs",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="cs",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.002076/0.002076, allocations: 63.91 kB / 472.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.339, allocations: 59.29 MB / 0.5198 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00327/0.3423, allocations: 1.818 MB / 0.5215 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000525/0.3428, allocations: 197.2 kB / 0.5217 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.343, allocations: 6.219 kB / 0.5217 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.3431, allocations: 34.72 kB / 0.5218 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.424e-05/0.3432, allocations: 18.75 kB / 0.5218 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.3435, allocations: 101.1 kB / 0.5219 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.3439, allocations: 236.8 kB / 0.5221 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.3441, allocations: 49.38 kB / 0.5222 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.3442, allocations: 82.28 kB / 0.5222 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.3444, allocations: 100.9 kB / 0.5223 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.55e-05/0.3444, allocations: 19.06 kB / 0.5223 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.843e-05/0.3445, allocations: 19.09 kB / 0.5224 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.3445, allocations: 44.19 kB / 0.5224 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.364e-05/0.3446, allocations: 76.83 kB / 0.5225 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.3449, allocations: 204.3 kB / 0.5227 GB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3449, allocations: 1.188 kB / 0.5227 GB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3449, allocations: 4 kB / 0.5227 GB, free: 9.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.3449, allocations: 0 / 0.5227 GB, free: 9.023 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.0008474/0.3458, allocations: 447 kB / 0.5231 GB, free: 8.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3458, allocations: 10.23 kB / 0.5231 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.862e-05/0.3458, allocations: 6.656 kB / 0.5231 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.736e-05/0.3459, allocations: 52.5 kB / 0.5232 GB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.373e-05/0.3459, allocations: 26 kB / 0.5232 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.3462, allocations: 192.9 kB / 0.5234 GB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/0.3462, allocations: 19.28 kB / 0.5234 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.531e-05/0.3463, allocations: 25.05 kB / 0.5234 GB, free: 8.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004598/0.3468, allocations: 236.3 kB / 0.5236 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3468, allocations: 3.938 kB / 0.5237 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.3468, allocations: 10.69 kB / 0.5237 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3468, allocations: 5.375 kB / 0.5237 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003707/0.3472, allocations: 161.8 kB / 0.5238 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.3488, allocations: 0.9507 MB / 0.5247 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.3491, allocations: 146.4 kB / 0.5249 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.3493, allocations: 69.67 kB / 0.525 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.3493, allocations: 6.344 kB / 0.525 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.3493, allocations: 32.97 kB / 0.525 GB, free: 7.336 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.3493, allocations: 0 / 0.525 GB, free: 7.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005403/0.3499, allocations: 249 kB / 0.5252 GB, free: 7.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.3499, allocations: 55.77 kB / 0.5253 GB, free: 7.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.3501, allocations: 216 kB / 0.5255 GB, free: 7.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.3501, allocations: 29.7 kB / 0.5255 GB, free: 6.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.375e-05/0.3501, allocations: 153.4 kB / 0.5257 GB, free: 6.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.336e-05/0.3502, allocations: 82.53 kB / 0.5257 GB, free: 6.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.222e-05/0.3503, allocations: 72.38 kB / 0.5258 GB, free: 6.742 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.54e-05/0.3503, allocations: 334.6 kB / 0.5261 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.3505, allocations: 76.36 kB / 0.5262 GB, free: 6.391 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.3507, allocations: 168.2 kB / 0.5264 GB, free: 6.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.352, allocations: 471.4 kB / 0.5268 GB, free: 6.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.352, allocations: 1.125 kB / 0.5268 GB, free: 6.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005223/0.3526, allocations: 313.1 kB / 0.5271 GB, free: 5.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3526, allocations: 5.594 kB / 0.5271 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3526, allocations: 2.844 kB / 0.5271 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.3526, allocations: 6.031 kB / 0.5271 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.353, allocations: 79.41 kB / 0.5272 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.353, allocations: 5.938 kB / 0.5272 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.3531, allocations: 52.97 kB / 0.5273 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.3532, allocations: 10.53 kB / 0.5273 GB, free: 5.836 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.0001851/0.3534, allocations: 148.6 kB / 0.5274 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.511e-05/0.3534, allocations: 21.64 kB / 0.5274 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000463/0.3539, allocations: 219.1 kB / 0.5276 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.3539, allocations: 2.406 kB / 0.5276 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3539, allocations: 4.562 kB / 0.5276 GB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.3539, allocations: 6.422 kB / 0.5277 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004301/0.3543, allocations: 262.4 kB / 0.5279 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3543, allocations: 3.938 kB / 0.5279 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003465/0.3547, allocations: 57.66 kB / 0.528 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.3547, allocations: 1.562 kB / 0.528 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.3547, allocations: 7.156 kB / 0.528 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3547, allocations: 1.375 kB / 0.528 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3547, allocations: 3.938 kB / 0.528 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005686/0.3553, allocations: 399.1 kB / 0.5284 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.704e-05/0.3553, allocations: 22.2 kB / 0.5284 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.3553, allocations: 8.828 kB / 0.5284 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.3555, allocations: 7.797 kB / 0.5284 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.3556, allocations: 22.53 kB / 0.5284 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.3556, allocations: 10.25 kB / 0.5284 GB, free: 5.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.929e-05/0.3557, allocations: 140.6 kB / 0.5286 GB, free: 4.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3557, allocations: 0 / 0.5286 GB, free: 4.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000328/0.356, allocations: 41.03 kB / 0.5286 GB, free: 4.973 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.0006979/0.3567, allocations: 0.9209 MB / 0.5295 GB, free: 4.207 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.3571, allocations: 199.1 kB / 0.5297 GB, free: 4.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3571, allocations: 1.812 kB / 0.5297 GB, free: 4.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.3573, allocations: 94.42 kB / 0.5298 GB, free: 4.113 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.3576, allocations: 31.75 kB / 0.5298 GB, free: 4.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.3607, allocations: 2.648 MB / 0.5324 GB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/0.3609, allocations: 142 kB / 0.5325 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000123/0.361, allocations: 27.58 kB / 0.5326 GB, free: 2.117 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.3611, allocations: 76.45 kB / 0.5326 GB, free: 2.062 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3611, allocations: 0 / 0.5326 GB, free: 2.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.3882, allocations: 4.94 MB / 0.5375 GB, free: 1.387 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.07, allocations: 9.219 kB / 0.5375 GB, free: 1.383 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.901977144996636] Failed to read output from testmodel.py, exit status != 0: 12.235858215019107 12.257438574 11.908280429 Calling exit ...