Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01044/0.01044, allocations: 100.4 kB / 15.73 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 195.8 kB / 16.67 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2129/0.2129, allocations: 22.35 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001869, allocations: 67.3 kB / 436.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.09916, allocations: 54.97 MB / 491.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002533/0.1017, allocations: 1.822 MB / 493.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1029, allocations: 0.6623 MB / 494 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.103, allocations: 4 kB / 494 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002559/0.1033, allocations: 31.77 kB / 494 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.1035, allocations: 39.73 kB / 494.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003182/0.1038, allocations: 127.8 kB / 494.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.1041, allocations: 219.6 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.1042, allocations: 53.53 kB / 494.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.1044, allocations: 95.61 kB / 494.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.1046, allocations: 91.66 kB / 494.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.1046, allocations: 20 kB / 494.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.01e-05/0.1047, allocations: 16 kB / 494.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.749e-05/0.1048, allocations: 59.81 kB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.128e-05/0.1049, allocations: 83.53 kB / 494.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.1051, allocations: 199.9 kB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1051, allocations: 0 / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1051, allocations: 0 / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1051, allocations: 0 / 495 MB, free: 14.23 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001086/0.1062, allocations: 0.5803 MB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1063, allocations: 8.031 kB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.82e-05/0.1063, allocations: 46.73 kB / 495.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.766e-05/0.1064, allocations: 20.66 kB / 495.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.1069, allocations: 284.7 kB / 496 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.1069, allocations: 12.38 kB / 496 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.1069, allocations: 16.31 kB / 496 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.1073, allocations: 180.1 kB / 496.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.1073, allocations: 3.906 kB / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.1073, allocations: 8 kB / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1073, allocations: 0 / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003101/0.1077, allocations: 128.1 kB / 496.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009885/0.1087, allocations: 0.5358 MB / 496.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.1092, allocations: 182.5 kB / 497 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.1094, allocations: 84.81 kB / 497.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.1095, allocations: 4 kB / 497.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003164/0.1098, allocations: 202.6 kB / 497.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1098, allocations: 0 / 497.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001652/0.1115, allocations: 0.6102 MB / 497.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.1115, allocations: 170.1 kB / 498.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003375/0.1119, allocations: 210.6 kB / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.1119, allocations: 33.7 kB / 498.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.117e-05/0.112, allocations: 124.2 kB / 498.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.1121, allocations: 43.36 kB / 498.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.125e-05/0.1121, allocations: 41.7 kB / 498.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1123, allocations: 330.8 kB / 498.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.1125, allocations: 68.81 kB / 498.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.1127, allocations: 95.98 kB / 499 MB, free: 9.922 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.1139, allocations: 0.5208 MB / 499.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1139, allocations: 0 / 499.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004714/0.1143, allocations: 282.1 kB / 499.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.01e-05/0.1144, allocations: 59.39 kB / 499.8 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1144, allocations: 4 kB / 499.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1144, allocations: 0 / 499.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.1146, allocations: 31.97 kB / 499.9 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.1146, allocations: 4 kB / 499.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.1149, allocations: 35.88 kB / 499.9 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.1149, allocations: 4 kB / 499.9 MB, free: 8.918 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002345/0.1151, allocations: 163.9 kB / 0.4884 GB, free: 8.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001192/0.1153, allocations: 69.69 kB / 0.4884 GB, free: 8.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009903/0.1163, allocations: 0.5086 MB / 0.4889 GB, free: 8.129 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.474e-06/0.1163, allocations: 3.984 kB / 0.4889 GB, free: 8.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003705/0.1166, allocations: 248.8 kB / 0.4892 GB, free: 7.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.866e-05/0.1167, allocations: 63.39 kB / 0.4892 GB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-06/0.1167, allocations: 0 / 0.4892 GB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.106e-06/0.1167, allocations: 0 / 0.4892 GB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.1169, allocations: 27.92 kB / 0.4893 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.1169, allocations: 0 / 0.4893 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.1171, allocations: 35.81 kB / 0.4893 GB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.1171, allocations: 8 kB / 0.4893 GB, free: 7.719 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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: 6 ($PRE.TDO.timeNextEv,$PRE.TDO.tdo,TDO.timeNextEv,TDO.tdo,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001477/0.1172, allocations: 225.8 kB / 0.4895 GB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.1173, allocations: 15.91 kB / 0.4895 GB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.969e-05/0.1173, allocations: 21.53 kB / 0.4896 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1173, allocations: 3.938 kB / 0.4896 GB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1174, allocations: 0 / 0.4896 GB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1174, allocations: 3.984 kB / 0.4896 GB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002505/0.1176, allocations: 285.4 kB / 0.4898 GB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1176, allocations: 0 / 0.4898 GB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1178, allocations: 19.92 kB / 0.4898 GB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003744/0.1181, allocations: 138.5 kB / 0.49 GB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.1182, allocations: 11.98 kB / 0.49 GB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009171/0.1191, allocations: 0.7998 MB / 0.4908 GB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.1191, allocations: 4 kB / 0.4908 GB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000939/0.1201, allocations: 0.4953 MB / 0.4913 GB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.1201, allocations: 96.95 kB / 0.4914 GB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.963e-05/0.1202, allocations: 11.94 kB / 0.4914 GB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.1204, allocations: 27.97 kB / 0.4914 GB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.1205, allocations: 11.98 kB / 0.4914 GB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.1205, allocations: 4 kB / 0.4914 GB, free: 5.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003019/0.1208, allocations: 168.2 kB / 0.4916 GB, free: 5.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.1208, allocations: 0 / 0.4916 GB, free: 5.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000339/0.1212, allocations: 67.78 kB / 0.4916 GB, free: 5.176 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001367/0.1226, allocations: 1.048 MB / 0.4927 GB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007409/0.1233, allocations: 477.3 kB / 0.4931 GB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.1233, allocations: 4 kB / 0.4931 GB, free: 3.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004853/0.1238, allocations: 211.2 kB / 0.4933 GB, free: 3.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.1241, allocations: 38.5 kB / 0.4934 GB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.1276, allocations: 2.269 MB / 0.4956 GB, free: 0.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.1279, allocations: 0.7281 MB / 0.4963 GB, free: 204 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001602/0.1281, allocations: 45.03 kB / 0.4963 GB, free: 160 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.1282, allocations: 51.42 kB / 0.4964 GB, free: 108 kB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1283, allocations: 0 / 0.4964 GB, free: 108 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.1522, allocations: 4.814 MB / 0.5011 GB, free: 11.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.23, allocations: 17.44 kB / 0.5011 GB, free: 11.41 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput.fmu > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)