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.00151/0.00151, allocations: 108 kB / 15.61 MB, free: 152 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.001492/0.001492, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2574/0.2574, allocations: 22.35 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.89 kB / 381.5 MB, free: 9.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3198, allocations: 54.94 MB / 436.5 MB, free: 40.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.00306/0.3229, allocations: 2.06 MB / 438.5 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.324, allocations: 0.6878 MB / 439.2 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.3241, allocations: 6.844 kB / 439.2 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002853/0.3244, allocations: 32.03 kB / 439.3 MB, free: 38.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.3246, allocations: 54.72 kB / 439.3 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.3249, allocations: 185.6 kB / 439.5 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000247/0.3252, allocations: 321 kB / 439.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.3253, allocations: 102.8 kB / 439.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.3255, allocations: 125.2 kB / 440 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.3256, allocations: 132.8 kB / 440.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.3257, allocations: 28.47 kB / 440.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.01e-05/0.3257, allocations: 27.06 kB / 440.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.737e-05/0.3258, allocations: 81.28 kB / 440.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.437e-05/0.3259, allocations: 126.5 kB / 440.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.3261, allocations: 284.6 kB / 440.7 MB, free: 37.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3262, allocations: 4 kB / 440.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3262, allocations: 0 / 440.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.3262, allocations: 0 / 440.7 MB, free: 37.49 MB / 350.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.001032/0.3272, allocations: 0.6143 MB / 441.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.3272, allocations: 11.12 kB / 441.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.381e-05/0.3273, allocations: 26.5 kB / 441.3 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004299/0.3278, allocations: 316.9 kB / 441.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.3278, allocations: 13.09 kB / 441.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.3278, allocations: 20.62 kB / 441.7 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003819/0.3282, allocations: 265.9 kB / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3282, allocations: 0 / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.3283, allocations: 8 kB / 442 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3283, allocations: 6.031 kB / 442 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003583/0.3286, allocations: 188.6 kB / 442.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.3297, allocations: 0.7054 MB / 442.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006659/0.3304, allocations: 253.6 kB / 443.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.3305, allocations: 100.5 kB / 443.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.3306, allocations: 3.938 kB / 443.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.3306, allocations: 41.66 kB / 443.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.3306, allocations: 0 / 443.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002325/0.3329, allocations: 0.8154 MB / 444.1 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.333, allocations: 105.7 kB / 444.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.3333, allocations: 261.1 kB / 444.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.3333, allocations: 29.7 kB / 444.4 MB, free: 35.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.886e-05/0.3334, allocations: 166 kB / 444.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.737e-05/0.3335, allocations: 64.03 kB / 444.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.513e-05/0.3335, allocations: 49.41 kB / 444.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.168e-05/0.3336, allocations: 331.1 kB / 445 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.3338, allocations: 94.36 kB / 445.1 MB, free: 34.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.334, allocations: 139.3 kB / 445.3 MB, free: 34.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.3343, allocations: 208.3 kB / 445.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3343, allocations: 0 / 445.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004127/0.3348, allocations: 268.2 kB / 445.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3348, allocations: 5.531 kB / 445.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3348, allocations: 0 / 445.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3348, allocations: 10.16 kB / 445.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.3351, allocations: 54.11 kB / 445.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.81e-06/0.3351, allocations: 0 / 445.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.3353, allocations: 39.95 kB / 445.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.3354, allocations: 13.09 kB / 445.9 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001404/0.3355, allocations: 169.8 kB / 446 MB, free: 34.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001052/0.3356, allocations: 108 kB / 446.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001763/0.3358, allocations: 161.1 kB / 446.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.22e-07/0.3358, allocations: 4.031 kB / 446.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0002495/0.3361, allocations: 216 kB / 446.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.791e-06/0.3361, allocations: 5.219 kB / 446.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.3361, allocations: 6.562 kB / 446.5 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-06/0.3361, allocations: 0 / 446.5 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.3363, allocations: 56.48 kB / 446.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.936e-06/0.3363, allocations: 6.719 kB / 446.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.3365, allocations: 31.06 kB / 446.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.3366, allocations: 9.688 kB / 446.6 MB, free: 34.04 MB / 350.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 6.617e-05/0.3366, allocations: 191 kB / 446.8 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.7e-05/0.3367, allocations: 27.34 kB / 446.8 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008736/0.3376, allocations: 410.4 kB / 447.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3376, allocations: 2.562 kB / 447.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3376, allocations: 0 / 447.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3376, allocations: 3.281 kB / 447.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.3379, allocations: 333.5 kB / 447.6 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3379, allocations: 0 / 447.6 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.338, allocations: 21.73 kB / 447.6 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004406/0.3384, allocations: 148.6 kB / 447.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.3385, allocations: 0 / 447.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/0.3411, allocations: 2.434 MB / 450.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3411, allocations: 0 / 450.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.3421, allocations: 0.5806 MB / 450.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.969e-05/0.3422, allocations: 105.3 kB / 450.8 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.3422, allocations: 7.938 kB / 450.8 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.3424, allocations: 27.42 kB / 450.9 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.3425, allocations: 17.12 kB / 450.9 MB, free: 31.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.3425, allocations: 3.625 kB / 450.9 MB, free: 31.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002666/0.3428, allocations: 198.8 kB / 451.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3428, allocations: 0 / 451.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004236/0.3432, allocations: 89.69 kB / 451.2 MB, free: 30.96 MB / 350.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 9.078e-05/0.3433, allocations: 107.3 kB / 451.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005467/0.3439, allocations: 316.5 kB / 451.6 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3439, allocations: 0 / 451.6 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004803/0.3444, allocations: 278.2 kB / 451.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.3448, allocations: 50.67 kB / 451.9 MB, free: 30.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009012/0.3457, allocations: 0.5516 MB / 452.5 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.3459, allocations: 0.76 MB / 453.2 MB, free: 29.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.346, allocations: 48.53 kB / 453.3 MB, free: 29.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.182e-05/0.3461, allocations: 26.98 kB / 453.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3461, allocations: 0 / 453.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of Templates: time 0.006826/0.3529, allocations: 3.588 MB / 456.9 MB, free: 29.31 MB / 350.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)