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.0009036/0.0009036, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.0009472/0.0009473, allocations: 198.2 kB / 16.91 MB, free: 6.195 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.222/1.222, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08603/0.08603, allocations: 22.32 MB / 313.1 MB, free: 9.145 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 66.27 kB / 381.6 MB, free: 41.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08061/0.08189, allocations: 54.96 MB / 436.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003121/0.08505, allocations: 2.095 MB / 438.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.08622, allocations: 0.678 MB / 439.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.08639, allocations: 4 kB / 439.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.08668, allocations: 31.72 kB / 439.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.08687, allocations: 43.66 kB / 439.4 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.08724, allocations: 170.5 kB / 439.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.08757, allocations: 319.4 kB / 439.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.08776, allocations: 108.4 kB / 440 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.08792, allocations: 119.5 kB / 440.1 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.08812, allocations: 143.3 kB / 440.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.857e-05/0.08817, allocations: 28 kB / 440.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.968e-05/0.08822, allocations: 28 kB / 440.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.08834, allocations: 75.81 kB / 440.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.08846, allocations: 135.2 kB / 440.5 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.08868, allocations: 215.6 kB / 440.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.08869, allocations: 0 / 440.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.0887, allocations: 0 / 440.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.08871, allocations: 0 / 440.7 MB, free: 8.672 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.001119/0.08984, allocations: 0.6157 MB / 441.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.08987, allocations: 8.031 kB / 441.3 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.107e-05/0.08995, allocations: 32.56 kB / 441.4 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.09041, allocations: 310.6 kB / 441.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.09044, allocations: 20.75 kB / 441.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.09049, allocations: 24.36 kB / 441.7 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.09092, allocations: 250.4 kB / 442 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.09094, allocations: 0 / 442 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.09097, allocations: 15.94 kB / 442 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.09098, allocations: 4 kB / 442 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003836/0.09137, allocations: 191.8 kB / 442.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.0925, allocations: 0.6992 MB / 442.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006971/0.09321, allocations: 250.4 kB / 443.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.09341, allocations: 105.1 kB / 443.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.09344, allocations: 3.906 kB / 443.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.09348, allocations: 38.56 kB / 443.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.09348, allocations: 0 / 443.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.002436/0.09592, allocations: 0.8094 MB / 444.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.09599, allocations: 110.8 kB / 444.2 MB, free: 4.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003778/0.09637, allocations: 260.9 kB / 444.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.09641, allocations: 29.7 kB / 444.5 MB, free: 4.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.09652, allocations: 172.2 kB / 444.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.827e-05/0.09657, allocations: 63.11 kB / 444.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.09665, allocations: 45.69 kB / 444.7 MB, free: 4.395 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.925e-05/0.09675, allocations: 326.8 kB / 445.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.09696, allocations: 96.8 kB / 445.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.09718, allocations: 146.1 kB / 445.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.09756, allocations: 206.8 kB / 445.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.09757, allocations: 4.031 kB / 445.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004678/0.09804, allocations: 276 kB / 445.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.09806, allocations: 4 kB / 445.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.09807, allocations: 0 / 445.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.09809, allocations: 7.938 kB / 445.8 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.0984, allocations: 55.89 kB / 445.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.09841, allocations: 4.062 kB / 445.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.09864, allocations: 39.81 kB / 445.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.09867, allocations: 7.938 kB / 445.9 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001698/0.09884, allocations: 172.1 kB / 446.1 MB, free: 3.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001308/0.09898, allocations: 108.2 kB / 446.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002084/0.0992, allocations: 158.5 kB / 446.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.09921, allocations: 0 / 446.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003021/0.09951, allocations: 223.5 kB / 446.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/0.09953, allocations: 4 kB / 446.5 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.09954, allocations: 3.938 kB / 446.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.038e-06/0.09955, allocations: 4 kB / 446.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.0998, allocations: 51.91 kB / 446.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.09981, allocations: 4 kB / 446.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001987/0.1, allocations: 31.97 kB / 446.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.1, allocations: 8 kB / 446.6 MB, free: 2.422 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 9.892e-05/0.1001, allocations: 188.2 kB / 446.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.1002, allocations: 27.66 kB / 446.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000947/0.1011, allocations: 408.1 kB / 447.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1012, allocations: 3.984 kB / 447.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1012, allocations: 0 / 447.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1012, allocations: 7.984 kB / 447.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003197/0.1015, allocations: 333.3 kB / 447.6 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1015, allocations: 0 / 447.6 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.1016, allocations: 15.98 kB / 447.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000456/0.1021, allocations: 148.6 kB / 447.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.1021, allocations: 4 kB / 447.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002967/0.1051, allocations: 2.432 MB / 450.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1051, allocations: 160 / 450.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.1062, allocations: 0.584 MB / 450.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.554e-05/0.1063, allocations: 104.8 kB / 450.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.1063, allocations: 3.938 kB / 450.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.1066, allocations: 32 kB / 450.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.1066, allocations: 15.98 kB / 450.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.1067, allocations: 15.92 kB / 450.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002901/0.107, allocations: 192.4 kB / 451.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.107, allocations: 0 / 451.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000419/0.1074, allocations: 87.69 kB / 451.2 MB, free: 13.61 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.0001062/0.1075, allocations: 111.2 kB / 451.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005805/0.1081, allocations: 308.4 kB / 451.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1081, allocations: 0 / 451.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.1086, allocations: 274.8 kB / 451.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.109, allocations: 56.2 kB / 451.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009894/0.11, allocations: 0.6533 MB / 452.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.1103, allocations: 0.7673 MB / 453.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.011e-05/0.1104, allocations: 19.44 kB / 453.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1104, allocations: 0 / 453.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Templates: time 0.005062/0.1154, allocations: 3.484 MB / 456.9 MB, free: 7.879 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 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)