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.0008189/0.0008189, 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.0008617/0.0008617, 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.906/0.906, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.06133/0.06133, allocations: 18.13 MB / 278.1 MB, free: 11.54 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.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 415.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.226e-05, allocations: 3.703 kB / 415.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002267/0.002289, allocations: 1.783 MB / 417.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008401/0.003129, allocations: 0.6061 MB / 418.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.909e-05/0.003208, allocations: 2.75 kB / 418.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003083/0.003516, allocations: 60.95 kB / 418.3 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.003662, allocations: 65.14 kB / 418.4 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003726/0.004034, allocations: 189.1 kB / 418.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.004244, allocations: 224.6 kB / 418.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.004374, allocations: 32.45 kB / 418.8 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.004493, allocations: 105.8 kB / 418.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002149/0.004708, allocations: 139 kB / 419 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.41e-05/0.004752, allocations: 19.81 kB / 419.1 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.772e-05/0.004779, allocations: 20.62 kB / 419.1 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.004889, allocations: 98.59 kB / 419.2 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.945e-05/0.004958, allocations: 65.52 kB / 419.2 MB, free: 10.53 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002701/0.005228, allocations: 255.1 kB / 419.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.005233, allocations: 0 / 419.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.005235, allocations: 0 / 419.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.005241, allocations: 0 / 419.5 MB, free: 10.43 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001079/0.00632, allocations: 0.6061 MB / 420.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.006368, allocations: 10.2 kB / 420.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.118e-05/0.006409, allocations: 47.31 kB / 420.1 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.664e-05/0.006456, allocations: 29.45 kB / 420.2 MB, free: 9.984 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.006933, allocations: 309.2 kB / 420.5 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.006949, allocations: 9.906 kB / 420.5 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.05e-05/0.006979, allocations: 18.86 kB / 420.5 MB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.00723, allocations: 178.5 kB / 420.7 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.007243, allocations: 6.438 kB / 420.7 MB, free: 9.691 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.007258, allocations: 9.625 kB / 420.7 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.007265, allocations: 3.438 kB / 420.7 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002302/0.007495, allocations: 171.2 kB / 420.9 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007152/0.00821, allocations: 0.5695 MB / 421.4 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002692/0.008479, allocations: 210.7 kB / 421.6 MB, free: 9.211 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.008605, allocations: 116 kB / 421.8 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.008635, allocations: 6.297 kB / 421.8 MB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.008651, allocations: 38 kB / 421.8 MB, free: 9.117 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.372e-06/0.008653, allocations: 0 / 421.8 MB, free: 9.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009241/0.009577, allocations: 0.5028 MB / 422.3 MB, free: 8.953 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.576e-05/0.009603, allocations: 53.75 kB / 422.4 MB, free: 8.891 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004237/0.01003, allocations: 346.2 kB / 422.7 MB, free: 8.742 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.01004, allocations: 30.86 kB / 422.7 MB, free: 8.707 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.093e-05/0.01009, allocations: 149.7 kB / 422.9 MB, free: 8.574 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.529e-05/0.01015, allocations: 82.91 kB / 422.9 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.0102, allocations: 41.78 kB / 423 MB, free: 8.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.266e-05/0.01024, allocations: 346 kB / 423.3 MB, free: 8.148 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.01035, allocations: 90.78 kB / 423.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.01045, allocations: 92.92 kB / 423.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.01158, allocations: 0.6234 MB / 424.1 MB, free: 7.941 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.01158, allocations: 1.938 kB / 424.1 MB, free: 7.941 MB / 330.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005159/0.01209, allocations: 427.5 kB / 424.5 MB, free: 7.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.01212, allocations: 11.08 kB / 424.6 MB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.01212, allocations: 1.062 kB / 424.6 MB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002337/0.01236, allocations: 99.39 kB / 424.7 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.01246, allocations: 29.53 kB / 424.7 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.01378, allocations: 1.975 MB / 426.7 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.01396, allocations: 55.08 kB / 426.7 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.01397, allocations: 8.625 kB / 426.7 MB, free: 6.086 MB / 330.7 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.0001813/0.01415, allocations: 166.8 kB / 426.9 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.01419, allocations: 23.66 kB / 426.9 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.625e-05/0.01424, allocations: 44.75 kB / 427 MB, free: 5.891 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.01424, allocations: 7.375 kB / 427 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.01425, allocations: 1.031 kB / 427 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.01425, allocations: 5.812 kB / 427 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.01453, allocations: 276.5 kB / 427.2 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.01454, allocations: 0.7969 kB / 427.2 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.01467, allocations: 33.12 kB / 427.3 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.01483, allocations: 66.86 kB / 427.3 MB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.01485, allocations: 12.81 kB / 427.3 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009363/0.01578, allocations: 1.731 MB / 429.1 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.01578, allocations: 3.938 kB / 429.1 MB, free: 4.102 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005755/0.01636, allocations: 0.541 MB / 429.6 MB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.0164, allocations: 33.66 kB / 429.7 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.01642, allocations: 7.75 kB / 429.7 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.0166, allocations: 45.2 kB / 429.7 MB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.835e-05/0.01667, allocations: 20.28 kB / 429.7 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.01668, allocations: 9.859 kB / 429.7 MB, free: 3.789 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003532/0.01703, allocations: 271.9 kB / 430 MB, free: 3.676 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.01703, allocations: 0 / 430 MB, free: 3.676 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002886/0.01732, allocations: 58.16 kB / 430.1 MB, free: 3.664 MB / 330.7 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.0006875/0.01801, allocations: 1.094 MB / 431.2 MB, free: 2.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005357/0.01854, allocations: 386.2 kB / 431.5 MB, free: 2.645 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01855, allocations: 0 / 431.5 MB, free: 2.645 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.01879, allocations: 250.5 kB / 431.8 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.01908, allocations: 45.09 kB / 431.8 MB, free: 2.473 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.02247, allocations: 3.169 MB / 435 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.0226, allocations: 172.6 kB / 435.2 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.02271, allocations: 57.92 kB / 435.2 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.083e-05/0.0228, allocations: 73.25 kB / 435.3 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.0228, allocations: 0 / 435.3 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.04482, allocations: 6.695 MB / 442 MB, free: 13.17 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.142/7.187, allocations: 13.92 kB / 442 MB, free: 13.16 MB / 346.7 MB " [Timeout remaining time 653] (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=100 --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: 9.12020449154079] Failed to read output from testmodel.py, exit status != 0: 7.274884818121791 7.283017488 7.276052132 Calling exit ...