Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.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.0007593/0.0007593, allocations: 76.55 kB / 19.95 MB, free: 4.609 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.00105/0.00105, allocations: 169.2 kB / 23.23 MB, free: 1.328 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.8815/0.8815, allocations: 177.1 MB / 203.5 MB, free: 5.75 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.06265/0.06265, 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.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 415.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/2.037e-05, allocations: 2.281 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.001567/0.001587, allocations: 0.9723 MB / 416.8 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.002732, allocations: 1.272 MB / 418.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.975e-05/0.002812, allocations: 2.562 kB / 418.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.003101, allocations: 62.44 kB / 418.2 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.003245, allocations: 64.95 kB / 418.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.0035, allocations: 166.2 kB / 418.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.003712, allocations: 190.4 kB / 418.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.372e-05/0.003805, allocations: 19.98 kB / 418.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.003908, allocations: 87.38 kB / 418.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.004085, allocations: 134.5 kB / 418.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.072e-05/0.004126, allocations: 17.62 kB / 418.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.373e-05/0.00415, allocations: 17.88 kB / 418.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.124e-05/0.004241, allocations: 84.72 kB / 418.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.903e-05/0.0043, allocations: 60.61 kB / 419 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.004521, allocations: 213.7 kB / 419.2 MB, free: 10.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.004524, allocations: 10.38 kB / 419.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.004525, allocations: 0 / 419.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.00453, allocations: 0 / 419.2 MB, free: 10.45 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009088/0.005439, allocations: 0.5707 MB / 419.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.005482, allocations: 10.97 kB / 419.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.724e-05/0.005519, allocations: 40.66 kB / 419.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.005557, allocations: 24.14 kB / 419.8 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.006014, allocations: 305.3 kB / 420.1 MB, free: 9.832 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.00603, allocations: 10.17 kB / 420.2 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.006055, allocations: 11.83 kB / 420.2 MB, free: 9.824 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002161/0.006271, allocations: 157.9 kB / 420.3 MB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.006285, allocations: 14 kB / 420.3 MB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.006297, allocations: 4.875 kB / 420.3 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.006303, allocations: 2.469 kB / 420.3 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.006524, allocations: 155.7 kB / 420.5 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00064/0.007164, allocations: 0.524 MB / 421 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002473/0.007412, allocations: 201.3 kB / 421.2 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.007531, allocations: 103.2 kB / 421.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.007554, allocations: 3.344 kB / 421.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.007569, allocations: 36.72 kB / 421.3 MB, free: 9.211 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.263e-06/0.00757, allocations: 0 / 421.3 MB, free: 9.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008414/0.008411, allocations: 477.9 kB / 421.8 MB, free: 9.062 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.472e-05/0.008436, allocations: 61.69 kB / 421.9 MB, free: 8.992 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003968/0.008833, allocations: 338.6 kB / 422.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.008846, allocations: 26.83 kB / 422.2 MB, free: 8.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.008894, allocations: 135.7 kB / 422.4 MB, free: 8.691 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.00894, allocations: 77.5 kB / 422.4 MB, free: 8.629 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.008992, allocations: 48.31 kB / 422.5 MB, free: 8.594 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.507e-05/0.009037, allocations: 337.5 kB / 422.8 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.009144, allocations: 84.41 kB / 422.9 MB, free: 8.246 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.009244, allocations: 89.75 kB / 423 MB, free: 8.219 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.01035, allocations: 0.6167 MB / 423.6 MB, free: 8.066 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.01035, allocations: 0 / 423.6 MB, free: 8.066 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004641/0.01082, allocations: 366.3 kB / 424 MB, free: 7.922 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.01083, allocations: 6.219 kB / 424 MB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.01084, allocations: 3.938 kB / 424 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001677/0.01101, allocations: 72.89 kB / 424 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.01112, allocations: 34.06 kB / 424.1 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000904/0.01202, allocations: 1.532 MB / 425.6 MB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.01219, allocations: 62.16 kB / 425.7 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.01221, allocations: 10.08 kB / 425.7 MB, free: 6.496 MB / 330.7 MB Warning: Assuming fixed start value for the following 6 variables: C.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.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 (22): * Single equations (assignments): 21 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.01231, allocations: 153.5 kB / 425.8 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.01234, allocations: 26.47 kB / 425.9 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.01238, allocations: 35.84 kB / 425.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.01238, allocations: 2.5 kB / 425.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.01238, allocations: 0.6562 kB / 425.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01238, allocations: 5.984 kB / 425.9 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.0126, allocations: 258.2 kB / 426.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.0126, allocations: 0 / 426.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.01272, allocations: 27.11 kB / 426.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001504/0.01287, allocations: 72.53 kB / 426.2 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.01289, allocations: 7.938 kB / 426.3 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007063/0.0136, allocations: 1.525 MB / 427.8 MB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.0136, allocations: 1.922 kB / 427.8 MB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005625/0.01416, allocations: 0.5237 MB / 428.3 MB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.272e-05/0.01419, allocations: 33.09 kB / 428.3 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.01421, allocations: 8.125 kB / 428.3 MB, free: 4.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.01439, allocations: 45.5 kB / 428.4 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/0.01443, allocations: 13.34 kB / 428.4 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.01444, allocations: 4.344 kB / 428.4 MB, free: 4.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000328/0.01477, allocations: 280.6 kB / 428.7 MB, free: 4.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01477, allocations: 0 / 428.7 MB, free: 4.305 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002175/0.01499, allocations: 48.16 kB / 428.7 MB, free: 4.297 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pol.x_scaled[1],Pol.x_scaled[2],Pcl.x_scaled[1],Pcl.x_scaled[2],C.x_scaled[1],C.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 (16): * Single equations (assignments): 15 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000654/0.01564, allocations: 1.073 MB / 429.8 MB, free: 3.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004416/0.01609, allocations: 353.6 kB / 430.1 MB, free: 3.301 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.01609, allocations: 1.375 kB / 430.1 MB, free: 3.301 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002025/0.01629, allocations: 238.8 kB / 430.4 MB, free: 3.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.01654, allocations: 41.38 kB / 430.4 MB, free: 3.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/0.01964, allocations: 3.004 MB / 433.4 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.01977, allocations: 153.8 kB / 433.6 MB, free: 1.309 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.01989, allocations: 57.92 kB / 433.6 MB, free: 1.305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.155e-05/0.01998, allocations: 68.98 kB / 433.7 MB, free: 1.254 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01998, allocations: 0.9062 kB / 433.7 MB, free: 1.254 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02174/0.04172, allocations: 6.33 MB / 440 MB, free: 14.26 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.879/7.92, allocations: 7.938 kB / 440 MB, free: 14.26 MB / 346.7 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising_fmu --startTime=0 --stopTime=10 --stepSize=0.02 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising.fmu > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.806756404228508] Failed to read output from testmodel.py, exit status != 0: 8.009845804423094 8.021967853 8.015345974 Calling exit ...