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.00127/0.00127, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 191.3 kB / 16.66 MB, free: 6.582 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2033/0.2033, allocations: 22.35 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 65.7 kB / 436.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08852/0.09044, allocations: 54.97 MB / 491.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002357/0.09285, allocations: 1.817 MB / 493.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.09402, allocations: 0.6662 MB / 494 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.823e-05/0.09412, allocations: 8 kB / 494 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.0944, allocations: 23.73 kB / 494 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.09456, allocations: 47.7 kB / 494.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.09486, allocations: 115.8 kB / 494.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002881/0.09516, allocations: 223.6 kB / 494.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.09531, allocations: 65.73 kB / 494.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.09544, allocations: 87.64 kB / 494.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.09564, allocations: 99.62 kB / 494.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.262e-05/0.09569, allocations: 16 kB / 494.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.34e-05/0.09574, allocations: 20 kB / 494.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.684e-05/0.09584, allocations: 51.83 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.09595, allocations: 83.59 kB / 494.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.09621, allocations: 195.2 kB / 495 MB, free: 14.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09623, allocations: 0 / 495 MB, free: 14.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.09623, allocations: 0 / 495 MB, free: 14.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.09624, allocations: 0 / 495 MB, free: 14.24 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.001148/0.0974, allocations: 0.5825 MB / 495.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.09745, allocations: 8.031 kB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.096e-05/0.09752, allocations: 54.73 kB / 495.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.541e-05/0.09758, allocations: 20.8 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.09809, allocations: 280.7 kB / 495.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.09813, allocations: 12.38 kB / 496 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.09817, allocations: 16.31 kB / 496 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/0.09854, allocations: 188.1 kB / 496.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.09857, allocations: 0 / 496.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.09859, allocations: 8 kB / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.09861, allocations: 0 / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000316/0.09893, allocations: 124.1 kB / 496.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009669/0.0999, allocations: 0.5359 MB / 496.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005351/0.1004, allocations: 182.4 kB / 497 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001902/0.1007, allocations: 88.81 kB / 497.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.1007, allocations: 4 kB / 497.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003156/0.101, allocations: 194.7 kB / 497.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.101, allocations: 0 / 497.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001643/0.1027, allocations: 0.6205 MB / 497.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.1028, allocations: 162.2 kB / 498.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.1031, allocations: 214.6 kB / 498.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.934e-05/0.1032, allocations: 33.7 kB / 498.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.707e-05/0.1033, allocations: 128.3 kB / 498.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.1033, allocations: 47.58 kB / 498.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.692e-05/0.1034, allocations: 41.7 kB / 498.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1036, allocations: 330.8 kB / 498.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.1037, allocations: 64.81 kB / 498.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.1039, allocations: 93.61 kB / 499 MB, free: 9.926 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.1051, allocations: 0.5249 MB / 499.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1052, allocations: 0 / 499.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000453/0.1056, allocations: 273.9 kB / 499.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.1057, allocations: 63.39 kB / 499.9 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1057, allocations: 0 / 499.9 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.1057, allocations: 4 kB / 499.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.1059, allocations: 35.92 kB / 499.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1059, allocations: 7.984 kB / 499.9 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.1061, allocations: 23.92 kB / 499.9 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.1061, allocations: 8 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.0002282/0.1064, allocations: 168 kB / 0.4884 GB, free: 8.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001252/0.1065, allocations: 77.61 kB / 0.4884 GB, free: 8.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001035/0.1075, allocations: 0.4956 MB / 0.4889 GB, free: 8.133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.22e-07/0.1076, allocations: 0 / 0.4889 GB, free: 8.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003731/0.1079, allocations: 256.8 kB / 0.4892 GB, free: 7.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.108, allocations: 59.41 kB / 0.4892 GB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/0.108, allocations: 3.984 kB / 0.4892 GB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.667e-06/0.108, allocations: 3.984 kB / 0.4892 GB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.1081, allocations: 27.98 kB / 0.4893 GB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.894e-06/0.1082, allocations: 0 / 0.4893 GB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.1083, allocations: 31.92 kB / 0.4893 GB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.1084, allocations: 4 kB / 0.4893 GB, free: 7.723 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.0001589/0.1085, allocations: 229.8 kB / 0.4895 GB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.737e-05/0.1086, allocations: 27.89 kB / 0.4895 GB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.282e-05/0.1086, allocations: 17.53 kB / 0.4896 GB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1086, allocations: 3.938 kB / 0.4896 GB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1086, allocations: 0 / 0.4896 GB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1087, allocations: 0 / 0.4896 GB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/0.1089, allocations: 281.4 kB / 0.4898 GB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1089, allocations: 0 / 0.4898 GB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.1091, allocations: 11.98 kB / 0.4898 GB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003744/0.1095, allocations: 154.4 kB / 0.49 GB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.1095, allocations: 0 / 0.49 GB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009544/0.1104, allocations: 0.8077 MB / 0.4908 GB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1105, allocations: 4.031 kB / 0.4908 GB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009501/0.1114, allocations: 499.3 kB / 0.4913 GB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.188e-05/0.1115, allocations: 101 kB / 0.4914 GB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/0.1116, allocations: 11.97 kB / 0.4914 GB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.1118, allocations: 23.97 kB / 0.4914 GB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.1118, allocations: 11.98 kB / 0.4914 GB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1119, allocations: 8 kB / 0.4914 GB, free: 5.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002858/0.1122, allocations: 164.2 kB / 0.4916 GB, free: 5.246 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.617e-06/0.1122, allocations: 0 / 0.4916 GB, free: 5.246 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.1125, allocations: 79.75 kB / 0.4916 GB, free: 5.168 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.001298/0.1138, allocations: 1.039 MB / 0.4927 GB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006685/0.1145, allocations: 477.4 kB / 0.4931 GB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1145, allocations: 0 / 0.4931 GB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004569/0.1149, allocations: 223.4 kB / 0.4933 GB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.1152, allocations: 42.02 kB / 0.4934 GB, free: 3.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/0.1185, allocations: 2.264 MB / 0.4956 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.1189, allocations: 0.732 MB / 0.4963 GB, free: 192 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.119, allocations: 37.23 kB / 0.4963 GB, free: 156 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.562e-05/0.1191, allocations: 55.41 kB / 0.4964 GB, free: 100 kB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1191, allocations: 0 / 0.4964 GB, free: 100 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.1471, allocations: 4.702 MB / 0.501 GB, free: 11.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.22, allocations: 9.922 kB / 0.501 GB, free: 11.53 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)