Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Smith_predictor.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.001727/0.001727, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002323/0.002323, allocations: 219.6 kB / 23.04 MB, free: 5.074 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.1044/0.1044, allocations: 22.94 MB / 336.2 MB, free: 12.64 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.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",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.002224/0.002224, allocations: 67.89 kB / 472.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3466, allocations: 59.29 MB / 0.5191 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002845/0.3495, allocations: 1.843 MB / 0.5209 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.3506, allocations: 0.655 MB / 0.5215 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.3507, allocations: 6 kB / 0.5215 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003757/0.3511, allocations: 60.27 kB / 0.5216 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.3513, allocations: 62.03 kB / 0.5217 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.3518, allocations: 151.5 kB / 0.5218 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005774/0.3523, allocations: 373 kB / 0.5222 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.3525, allocations: 51.22 kB / 0.5222 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.3527, allocations: 142.2 kB / 0.5223 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.353, allocations: 178.5 kB / 0.5225 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.531e-05/0.3531, allocations: 18.78 kB / 0.5225 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.608e-05/0.3531, allocations: 20.31 kB / 0.5226 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.3533, allocations: 96.81 kB / 0.5226 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.3535, allocations: 106.6 kB / 0.5227 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.3538, allocations: 242.9 kB / 0.523 GB, free: 8.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3539, allocations: 0 / 0.523 GB, free: 8.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3539, allocations: 1.609 kB / 0.523 GB, free: 8.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.3539, allocations: 0 / 0.523 GB, free: 8.363 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001783/0.3556, allocations: 0.6116 MB / 0.5236 GB, free: 7.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.3557, allocations: 14.98 kB / 0.5236 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.401e-05/0.3557, allocations: 7.562 kB / 0.5236 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.067e-05/0.3558, allocations: 45.42 kB / 0.5236 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.3558, allocations: 30.75 kB / 0.5237 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008101/0.3566, allocations: 308.3 kB / 0.524 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.3567, allocations: 9 kB / 0.524 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.507e-05/0.3567, allocations: 21.62 kB / 0.524 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.357, allocations: 178.8 kB / 0.5242 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.3571, allocations: 1.438 kB / 0.5242 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.3571, allocations: 5.188 kB / 0.5242 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.916e-06/0.3571, allocations: 3.625 kB / 0.5242 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003334/0.3574, allocations: 172.3 kB / 0.5243 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.3585, allocations: 0.6188 MB / 0.5249 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003778/0.3589, allocations: 217.7 kB / 0.5252 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.3591, allocations: 110 kB / 0.5253 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.3591, allocations: 10.92 kB / 0.5253 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.3592, allocations: 32.09 kB / 0.5253 GB, free: 7.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.3592, allocations: 0 / 0.5253 GB, free: 7.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001536/0.3607, allocations: 0.5017 MB / 0.5258 GB, free: 6.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.3607, allocations: 57.53 kB / 0.5258 GB, free: 6.809 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007975/0.3615, allocations: 344.3 kB / 0.5262 GB, free: 6.656 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.3615, allocations: 30.77 kB / 0.5262 GB, free: 6.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.861e-05/0.3616, allocations: 142.2 kB / 0.5263 GB, free: 6.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.091e-05/0.3617, allocations: 83.3 kB / 0.5264 GB, free: 6.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.196e-05/0.3618, allocations: 42.47 kB / 0.5265 GB, free: 6.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.074e-05/0.3619, allocations: 336.9 kB / 0.5268 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.362, allocations: 91.41 kB / 0.5269 GB, free: 6.051 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.3622, allocations: 103 kB / 0.527 GB, free: 6.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/0.3643, allocations: 0.6328 MB / 0.5276 GB, free: 5.855 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3643, allocations: 0 / 0.5276 GB, free: 5.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008385/0.3651, allocations: 420.1 kB / 0.528 GB, free: 5.691 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.3652, allocations: 7.938 kB / 0.528 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3652, allocations: 1.25 kB / 0.528 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003555/0.3655, allocations: 98.89 kB / 0.5281 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.3657, allocations: 37.47 kB / 0.5281 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/0.3677, allocations: 1.981 MB / 0.5301 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/0.3681, allocations: 54.55 kB / 0.5301 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.3681, allocations: 9.5 kB / 0.5301 GB, free: 4 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: K.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002458/0.3683, allocations: 174.3 kB / 0.5303 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.3684, allocations: 27.09 kB / 0.5303 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.905e-05/0.3685, allocations: 41.14 kB / 0.5303 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.3685, allocations: 2.281 kB / 0.5303 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.3685, allocations: 1.062 kB / 0.5303 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.3685, allocations: 2.781 kB / 0.5304 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003917/0.3689, allocations: 310.6 kB / 0.5306 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3689, allocations: 4 kB / 0.5307 GB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.3691, allocations: 32.23 kB / 0.5307 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002159/0.3693, allocations: 68.12 kB / 0.5307 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.3694, allocations: 8.391 kB / 0.5308 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.3706, allocations: 1.752 MB / 0.5325 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3706, allocations: 0 / 0.5325 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008366/0.3715, allocations: 0.5415 MB / 0.533 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.094e-05/0.3715, allocations: 28.72 kB / 0.533 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.3716, allocations: 4.125 kB / 0.533 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.372, allocations: 45.86 kB / 0.5331 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.3721, allocations: 31.72 kB / 0.5331 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.3721, allocations: 4 kB / 0.5331 GB, free: 1.688 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007634/0.3728, allocations: 273.7 kB / 0.5334 GB, free: 1.574 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3728, allocations: 0 / 0.5334 GB, free: 1.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.3733, allocations: 63.38 kB / 0.5334 GB, free: 1.559 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pr.x_scaled[1],Pr.x_scaled[2],Mr.x_scaled[1],Mr.x_scaled[2],K.x_scaled[1],K.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001123/0.3744, allocations: 1.088 MB / 0.5345 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006551/0.3751, allocations: 377 kB / 0.5348 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3751, allocations: 0 / 0.5348 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.3755, allocations: 261.5 kB / 0.5351 GB, free: 400 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.3758, allocations: 43.17 kB / 0.5351 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005866/0.3817, allocations: 3.203 MB / 0.5383 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.3822, allocations: 0.7808 MB / 0.539 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3823, allocations: 52.06 kB / 0.5391 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.3825, allocations: 74.59 kB / 0.5391 GB, free: 13.79 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3825, allocations: 0 / 0.5391 GB, free: 13.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03168/0.4142, allocations: 6.113 MB / 0.5451 GB, free: 11.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.3, allocations: 6.734 kB / 0.5451 GB, free: 11.56 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Smith_predictor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Smith_predictor_fmu --startTime=0 --stopTime=500 --stepSize=1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Smith_predictor.fmu > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.126355375978164] Failed to read output from testmodel.py, exit status != 0: 12.489098443998955 12.50814669 12.151134399 Calling exit ...