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: translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006247/0.006247, allocations: 102.9 kB / 15.73 MB, free: 6.035 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.001279/0.001279, allocations: 196.5 kB / 16.68 MB, free: 5.957 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09015/0.09015, allocations: 22.31 MB / 312.8 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 63.89 kB / 437 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1215, allocations: 54.96 MB / 492 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002876/0.1244, allocations: 1.813 MB / 493.8 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.1255, allocations: 0.6507 MB / 494.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8e-05/0.1256, allocations: 4 kB / 494.4 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.1259, allocations: 35.77 kB / 494.5 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.126, allocations: 35.73 kB / 494.5 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002963/0.1263, allocations: 131.7 kB / 494.6 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002566/0.1266, allocations: 223.5 kB / 494.9 MB, free: 2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.1267, allocations: 53.53 kB / 494.9 MB, free: 1.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.1268, allocations: 87.73 kB / 495 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.127, allocations: 95.64 kB / 495.1 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.041e-05/0.127, allocations: 16 kB / 495.1 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.009e-05/0.1271, allocations: 20 kB / 495.1 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.225e-05/0.1272, allocations: 55.77 kB / 495.2 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.192e-05/0.1272, allocations: 87.53 kB / 495.3 MB, free: 1.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.1275, allocations: 199.3 kB / 495.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1275, allocations: 0 / 495.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1275, allocations: 3.938 kB / 495.5 MB, free: 1.391 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1275, allocations: 0 / 495.5 MB, free: 1.391 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.0009879/0.1285, allocations: 0.5762 MB / 496 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.1285, allocations: 8.031 kB / 496.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.1286, allocations: 24.66 kB / 496.1 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.129, allocations: 280.7 kB / 496.4 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.1291, allocations: 12.38 kB / 496.4 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.1291, allocations: 24.28 kB / 496.4 MB, free: 384 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000334/0.1294, allocations: 184.2 kB / 496.6 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.1295, allocations: 0 / 496.6 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.1295, allocations: 4 kB / 496.6 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.1295, allocations: 4 kB / 496.6 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.1298, allocations: 132.1 kB / 496.7 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008626/0.1307, allocations: 0.528 MB / 497.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000464/0.1312, allocations: 182.5 kB / 497.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.1313, allocations: 88.81 kB / 497.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.1314, allocations: 0 / 497.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002719/0.1316, allocations: 198.7 kB / 497.7 MB, free: 14.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.1317, allocations: 4 kB / 497.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001467/0.1331, allocations: 0.6101 MB / 498.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.1332, allocations: 174.1 kB / 498.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.1335, allocations: 214.6 kB / 498.7 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.1336, allocations: 25.7 kB / 498.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.156e-05/0.1337, allocations: 120.2 kB / 498.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.797e-05/0.1337, allocations: 51.3 kB / 498.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.595e-05/0.1338, allocations: 41.7 kB / 498.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.1339, allocations: 334.8 kB / 499.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.134, allocations: 64.83 kB / 499.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.1342, allocations: 89.66 kB / 499.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.1354, allocations: 0.5222 MB / 499.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1354, allocations: 0 / 499.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000433/0.1358, allocations: 280.6 kB / 0.4885 GB, free: 12.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.579e-05/0.1359, allocations: 59.41 kB / 0.4885 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1359, allocations: 0 / 0.4885 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.1359, allocations: 0 / 0.4885 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.1361, allocations: 31.97 kB / 0.4886 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1361, allocations: 0 / 0.4886 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.1363, allocations: 35.91 kB / 0.4886 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.1363, allocations: 4 kB / 0.4886 GB, free: 12.14 MB / 382.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.0002138/0.1365, allocations: 158.2 kB / 0.4887 GB, free: 11.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001214/0.1367, allocations: 90.41 kB / 0.4888 GB, free: 11.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001019/0.1377, allocations: 0.4956 MB / 0.4893 GB, free: 11.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.705e-06/0.1377, allocations: 3.938 kB / 0.4893 GB, free: 11.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003483/0.1381, allocations: 257.5 kB / 0.4896 GB, free: 11.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.976e-05/0.1381, allocations: 55.41 kB / 0.4896 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-06/0.1381, allocations: 3.938 kB / 0.4896 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.995e-06/0.1381, allocations: 4 kB / 0.4896 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.1383, allocations: 27.92 kB / 0.4897 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-06/0.1383, allocations: 0 / 0.4897 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.1385, allocations: 31.81 kB / 0.4897 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.1385, allocations: 4 kB / 0.4897 GB, free: 10.95 MB / 382.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.0001894/0.1387, allocations: 245.8 kB / 0.4899 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.1387, allocations: 15.81 kB / 0.4899 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.695e-05/0.1388, allocations: 21.52 kB / 0.49 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1388, allocations: 4 kB / 0.49 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1388, allocations: 0 / 0.49 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1388, allocations: 0 / 0.49 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002665/0.1391, allocations: 281.4 kB / 0.4902 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1391, allocations: 4 kB / 0.4902 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.1392, allocations: 15.92 kB / 0.4902 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003673/0.1396, allocations: 146.5 kB / 0.4904 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.1397, allocations: 4 kB / 0.4904 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008311/0.1405, allocations: 0.7999 MB / 0.4912 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1405, allocations: 3.938 kB / 0.4912 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008779/0.1414, allocations: 0.4953 MB / 0.4917 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-05/0.1415, allocations: 96.86 kB / 0.4918 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.1415, allocations: 4 kB / 0.4918 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.1418, allocations: 36 kB / 0.4918 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.1418, allocations: 7.984 kB / 0.4918 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.1418, allocations: 4 kB / 0.4918 GB, free: 8.625 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.1421, allocations: 168.2 kB / 0.492 GB, free: 8.461 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1421, allocations: 0 / 0.492 GB, free: 8.461 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.1424, allocations: 67.84 kB / 0.492 GB, free: 8.395 MB / 382.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.0001255/0.1426, allocations: 107.2 kB / 0.4921 GB, free: 8.281 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006417/0.1432, allocations: 479.5 kB / 0.4926 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1432, allocations: 0 / 0.4926 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004502/0.1437, allocations: 215.2 kB / 0.4928 GB, free: 7.543 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.144, allocations: 39.92 kB / 0.4928 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000769/0.1448, allocations: 417.4 kB / 0.4932 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.1451, allocations: 0.7359 MB / 0.4939 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.1452, allocations: 33.05 kB / 0.494 GB, free: 6.277 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.727e-05/0.1452, allocations: 15.44 kB / 0.494 GB, free: 6.262 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1453, allocations: 0 / 0.494 GB, free: 6.262 MB / 382.1 MB Notification: Performance of Templates: time 0.00581/0.1511, allocations: 2.776 MB / 0.4967 GB, free: 3.504 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.makefile (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 & ./AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)