Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 107.1 kB / 16.35 MB, free: 5.824 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.001136/0.001135, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09252/0.09252, allocations: 22.32 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 68.53 kB / 382.9 MB, free: 40.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08505/0.08631, allocations: 54.96 MB / 437.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.003022/0.08937, allocations: 1.824 MB / 439.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.09046, allocations: 0.5962 MB / 440.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.09058, allocations: 7.938 kB / 440.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.09089, allocations: 31.78 kB / 440.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001562/0.09108, allocations: 39.72 kB / 440.4 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000275/0.09136, allocations: 107.8 kB / 440.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.09164, allocations: 219.6 kB / 440.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.0918, allocations: 60.27 kB / 440.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.09194, allocations: 87.73 kB / 440.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.09212, allocations: 91.59 kB / 440.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.184e-05/0.09217, allocations: 16 kB / 441 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.216e-05/0.09221, allocations: 16 kB / 441 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.09232, allocations: 59.81 kB / 441 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.026e-05/0.09242, allocations: 79.53 kB / 441.1 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.09266, allocations: 183.2 kB / 441.3 MB, free: 8.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.09268, allocations: 0 / 441.3 MB, free: 8.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.09268, allocations: 0 / 441.3 MB, free: 8.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.0927, allocations: 4 kB / 441.3 MB, free: 8.137 MB / 318.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.001095/0.0938, allocations: 0.5223 MB / 441.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.09385, allocations: 12.03 kB / 441.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.205e-05/0.0939, allocations: 16.75 kB / 441.8 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.0944, allocations: 272.6 kB / 442.1 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.09443, allocations: 8.609 kB / 442.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.09448, allocations: 12.38 kB / 442.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.09478, allocations: 173.7 kB / 442.3 MB, free: 7.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.0948, allocations: 3.938 kB / 442.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.09483, allocations: 0 / 442.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.09484, allocations: 4 kB / 442.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.09511, allocations: 128.5 kB / 442.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009428/0.09606, allocations: 0.5282 MB / 443 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005927/0.09667, allocations: 194.5 kB / 443.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.09683, allocations: 68.83 kB / 443.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.09686, allocations: 0 / 443.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.0969, allocations: 34.56 kB / 443.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 9.81e-07/0.0969, allocations: 0 / 443.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.001599/0.09851, allocations: 0.5302 MB / 443.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.09858, allocations: 77.33 kB / 443.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000357/0.09894, allocations: 215.2 kB / 444.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.09897, allocations: 33.64 kB / 444.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.09907, allocations: 127.9 kB / 444.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.533e-05/0.09912, allocations: 47.34 kB / 444.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/0.09919, allocations: 33.7 kB / 444.3 MB, free: 4.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.09933, allocations: 330.8 kB / 444.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.09947, allocations: 60.83 kB / 444.7 MB, free: 4.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.09964, allocations: 98.45 kB / 444.8 MB, free: 4.379 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.0999, allocations: 139.3 kB / 444.9 MB, free: 4.238 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.09992, allocations: 0 / 444.9 MB, free: 4.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003546/0.1003, allocations: 195.1 kB / 445.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1003, allocations: 8 kB / 445.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1003, allocations: 0 / 445.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.1003, allocations: 0 / 445.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.1006, allocations: 43.97 kB / 445.2 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.1006, allocations: 4 kB / 445.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001835/0.1008, allocations: 31.81 kB / 445.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.1008, allocations: 7.938 kB / 445.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001422/0.101, allocations: 144.1 kB / 445.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001026/0.1011, allocations: 74.58 kB / 445.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000164/0.1013, allocations: 124.3 kB / 445.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.91e-07/0.1013, allocations: 0 / 445.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002624/0.1015, allocations: 169.3 kB / 445.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.725e-06/0.1016, allocations: 4 kB / 445.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-06/0.1016, allocations: 0 / 445.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-06/0.1016, allocations: 7.984 kB / 445.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.1018, allocations: 36.05 kB / 445.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-06/0.1018, allocations: 0 / 445.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.102, allocations: 27.91 kB / 445.8 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.102, allocations: 7.938 kB / 445.8 MB, free: 3.344 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (16): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.1021, allocations: 192.9 kB / 446 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/0.1022, allocations: 19.75 kB / 446 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000673/0.1028, allocations: 287.6 kB / 446.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1029, allocations: 4 kB / 446.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1029, allocations: 0 / 446.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1029, allocations: 0 / 446.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.1032, allocations: 265.5 kB / 446.5 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1032, allocations: 3.938 kB / 446.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.1033, allocations: 19.98 kB / 446.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003365/0.1036, allocations: 84.78 kB / 446.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.1037, allocations: 0 / 446.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/0.1057, allocations: 1.84 MB / 448.5 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1057, allocations: 0 / 448.5 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007831/0.1065, allocations: 436 kB / 448.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.1066, allocations: 96.8 kB / 449 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.1066, allocations: 4 kB / 449 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.1068, allocations: 23.97 kB / 449 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.1069, allocations: 19.92 kB / 449.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.1069, allocations: 0 / 449.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002757/0.1072, allocations: 169.1 kB / 449.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1072, allocations: 0 / 449.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003544/0.1076, allocations: 55.84 kB / 449.3 MB, free: 15.61 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.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 (8): * Single equations (assignments): 7 * 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.0001148/0.1077, allocations: 107.2 kB / 449.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004313/0.1081, allocations: 207.8 kB / 449.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1081, allocations: 4 kB / 449.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.1085, allocations: 206.6 kB / 449.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.1088, allocations: 40.06 kB / 449.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007144/0.1096, allocations: 389.5 kB / 450.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.1098, allocations: 0.7358 MB / 450.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.11, allocations: 40.98 kB / 451 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.39e-05/0.11, allocations: 15.44 kB / 451 MB, free: 13.82 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.11, allocations: 0 / 451 MB, free: 13.82 MB / 334.1 MB Notification: Performance of Templates: time 0.005343/0.1154, allocations: 2.466 MB / 453.5 MB, free: 11.36 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_below_limit -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)