Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 108.2 kB / 16.36 MB, free: 6.285 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.001177/0.001178, allocations: 193.2 kB / 17.29 MB, free: 5.863 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08898/0.08898, allocations: 22.35 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.69 kB / 382.9 MB, free: 40.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.09109, allocations: 54.96 MB / 437.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003513/0.09465, allocations: 2.053 MB / 440 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.09578, allocations: 0.6897 MB / 440.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.09592, allocations: 7.875 kB / 440.6 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002884/0.09622, allocations: 39.66 kB / 440.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.09641, allocations: 51.53 kB / 440.7 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.0968, allocations: 187.7 kB / 440.9 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.09714, allocations: 319.4 kB / 441.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.09734, allocations: 104.2 kB / 441.3 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.0975, allocations: 119.5 kB / 441.5 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.09772, allocations: 139.4 kB / 441.6 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.09778, allocations: 28 kB / 441.6 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.185e-05/0.09783, allocations: 28 kB / 441.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.09795, allocations: 75.75 kB / 441.7 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.09807, allocations: 131.2 kB / 441.8 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.09838, allocations: 294.9 kB / 442.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.0984, allocations: 0 / 442.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.09841, allocations: 4 kB / 442.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.09842, allocations: 0 / 442.1 MB, free: 7.285 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001291/0.09971, allocations: 0.6156 MB / 442.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.09976, allocations: 8.031 kB / 442.8 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.873e-05/0.09983, allocations: 32.56 kB / 442.8 MB, free: 6.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.1004, allocations: 322.7 kB / 443.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.1004, allocations: 12.75 kB / 443.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/0.1005, allocations: 20.38 kB / 443.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004211/0.1009, allocations: 258.3 kB / 443.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1009, allocations: 0 / 443.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.1009, allocations: 7.938 kB / 443.4 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1009, allocations: 8 kB / 443.4 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.1014, allocations: 187.9 kB / 443.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.1026, allocations: 0.6992 MB / 444.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007253/0.1034, allocations: 250.5 kB / 444.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.1036, allocations: 103.5 kB / 444.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.1036, allocations: 3.906 kB / 444.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1036, allocations: 42.5 kB / 444.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.502e-06/0.1037, allocations: 0 / 444.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.002579/0.1062, allocations: 0.8149 MB / 445.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.1063, allocations: 106.8 kB / 445.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.1067, allocations: 260.9 kB / 445.9 MB, free: 3.324 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.1067, allocations: 33.7 kB / 445.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.1069, allocations: 160.2 kB / 446 MB, free: 3.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.991e-05/0.1069, allocations: 63.17 kB / 446.1 MB, free: 3.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.952e-05/0.107, allocations: 45.69 kB / 446.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1072, allocations: 326.8 kB / 446.5 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.1074, allocations: 104.7 kB / 446.6 MB, free: 2.578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.1076, allocations: 142.5 kB / 446.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.108, allocations: 210 kB / 446.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.108, allocations: 0 / 446.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004737/0.1085, allocations: 265.2 kB / 447.2 MB, free: 1.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1086, allocations: 4.062 kB / 447.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1086, allocations: 7.938 kB / 447.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1086, allocations: 7.938 kB / 447.2 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.1089, allocations: 59.95 kB / 447.3 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.1089, allocations: 3.984 kB / 447.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.1092, allocations: 35.81 kB / 447.3 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.1092, allocations: 7.938 kB / 447.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001871/0.1094, allocations: 172.1 kB / 447.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001393/0.1095, allocations: 116.2 kB / 447.6 MB, free: 1.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002438/0.1098, allocations: 152 kB / 447.7 MB, free: 1.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.32e-07/0.1098, allocations: 0 / 447.7 MB, free: 1.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003196/0.1101, allocations: 222.7 kB / 447.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.1101, allocations: 8.078 kB / 448 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-06/0.1101, allocations: 7.938 kB / 448 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.068e-06/0.1101, allocations: 4 kB / 448 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.1104, allocations: 43.92 kB / 448 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1104, allocations: 7.984 kB / 448 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.1106, allocations: 23.92 kB / 448 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.1107, allocations: 4 kB / 448 MB, free: 1.047 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.0001827/0.1108, allocations: 196.1 kB / 448.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.61e-05/0.1109, allocations: 39.62 kB / 448.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009805/0.1119, allocations: 406.9 kB / 448.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.1119, allocations: 0 / 448.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.1119, allocations: 4 kB / 448.7 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1119, allocations: 3.938 kB / 448.7 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004732/0.1124, allocations: 329.3 kB / 449 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1124, allocations: 0 / 449 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.1126, allocations: 15.98 kB / 449 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005555/0.1131, allocations: 140.8 kB / 449.2 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.1132, allocations: 8 kB / 449.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003533/0.1167, allocations: 2.432 MB / 451.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1167, allocations: 0 / 451.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.1179, allocations: 0.5778 MB / 452.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.969e-05/0.1179, allocations: 100.8 kB / 452.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.118, allocations: 11.97 kB / 452.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.1182, allocations: 27.97 kB / 452.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.926e-05/0.1183, allocations: 23.91 kB / 452.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.1183, allocations: 11.94 kB / 452.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003047/0.1186, allocations: 188.4 kB / 452.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1186, allocations: 0 / 452.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000446/0.1191, allocations: 91.69 kB / 452.6 MB, free: 12.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000127/0.1192, allocations: 111.2 kB / 452.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006143/0.1199, allocations: 297.3 kB / 453 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1199, allocations: 0 / 453 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000545/0.1204, allocations: 285.2 kB / 453.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.1208, allocations: 40.36 kB / 453.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.1219, allocations: 0.5306 MB / 453.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.1223, allocations: 0.7634 MB / 454.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.1224, allocations: 53.59 kB / 454.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.745e-05/0.1225, allocations: 19.44 kB / 454.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1225, allocations: 0 / 454.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of Templates: time 0.006896/0.1294, allocations: 3.615 MB / 458.3 MB, free: 6.48 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)