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.001179/0.001179, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.01237/0.01237, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.504/1.504, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2159/0.2159, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005389/0.000539, allocations: 15.98 kB / 383.3 MB, free: 9.453 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3879, allocations: 55.97 MB / 439.2 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002025/0.39, allocations: 1.752 MB / 441 MB, free: 38.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.391, allocations: 0.6609 MB / 441.7 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.3912, allocations: 2.906 kB / 441.7 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003388/0.3915, allocations: 36.38 kB / 441.7 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.3917, allocations: 39.19 kB / 441.7 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.3921, allocations: 164.7 kB / 441.9 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.3924, allocations: 306.1 kB / 442.2 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.3927, allocations: 98.58 kB / 442.3 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.3928, allocations: 92.7 kB / 442.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.393, allocations: 109.2 kB / 442.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.425e-05/0.393, allocations: 5.688 kB / 442.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.599e-05/0.3931, allocations: 11.94 kB / 442.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.215e-05/0.3932, allocations: 55.61 kB / 442.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.3933, allocations: 129.2 kB / 442.7 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.3935, allocations: 257.7 kB / 442.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3935, allocations: 3.938 kB / 442.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3935, allocations: 0 / 442.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.3935, allocations: 2.906 kB / 442.9 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.001124/0.3947, allocations: 0.5662 MB / 443.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.3947, allocations: 16.41 kB / 443.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.3948, allocations: 37.72 kB / 443.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/0.3953, allocations: 314.9 kB / 443.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.3953, allocations: 10.59 kB / 443.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.132e-05/0.3954, allocations: 26.12 kB / 443.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004613/0.3959, allocations: 264.9 kB / 444.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.3959, allocations: 0 / 444.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/0.3959, allocations: 10.94 kB / 444.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3959, allocations: 5.531 kB / 444.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004034/0.3963, allocations: 208.1 kB / 444.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.3974, allocations: 0.7219 MB / 445.1 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007178/0.3981, allocations: 270 kB / 445.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.3983, allocations: 114.8 kB / 445.5 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.3984, allocations: 6.969 kB / 445.5 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.3984, allocations: 34.3 kB / 445.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.3984, allocations: 0 / 445.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002665/0.4011, allocations: 0.9511 MB / 446.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.4011, allocations: 109.7 kB / 446.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.4015, allocations: 266.2 kB / 446.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.4015, allocations: 28.52 kB / 446.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.882e-05/0.4016, allocations: 165.2 kB / 447 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/0.4017, allocations: 60.02 kB / 447.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.214e-05/0.4017, allocations: 19.59 kB / 447.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/0.4018, allocations: 338.1 kB / 447.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.402, allocations: 98.39 kB / 447.5 MB, free: 34.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.4022, allocations: 150.1 kB / 447.7 MB, free: 34.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003749/0.4026, allocations: 218.1 kB / 447.9 MB, free: 34.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4026, allocations: 0 / 447.9 MB, free: 34.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004742/0.403, allocations: 283.3 kB / 448.2 MB, free: 34.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.4031, allocations: 114.1 kB / 448.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.4031, allocations: 0 / 448.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.4031, allocations: 0 / 448.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.4034, allocations: 65.06 kB / 448.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.4035, allocations: 2.344 kB / 448.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.4037, allocations: 43.09 kB / 448.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.4037, allocations: 7.062 kB / 448.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.14e-06/0.4037, allocations: 2.875 kB / 448.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002542/0.404, allocations: 182.5 kB / 448.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-06/0.404, allocations: 0 / 448.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-06/0.404, allocations: 0 / 448.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.4043, allocations: 52.66 kB / 448.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-06/0.4043, allocations: 2.969 kB / 448.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.4045, allocations: 27.28 kB / 448.7 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.4045, allocations: 13.03 kB / 448.7 MB, free: 34.26 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 0.0001302/0.4046, allocations: 225.9 kB / 448.9 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.4047, allocations: 26 kB / 448.9 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.4057, allocations: 453.5 kB / 449.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.4057, allocations: 2.625 kB / 449.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.4057, allocations: 7.938 kB / 449.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.4058, allocations: 11.16 kB / 449.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003776/0.4061, allocations: 332.1 kB / 449.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4062, allocations: 0 / 449.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.4063, allocations: 14.78 kB / 449.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005547/0.4068, allocations: 155.2 kB / 449.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.4069, allocations: 4 kB / 449.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002929/0.4098, allocations: 2.33 MB / 452.2 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4098, allocations: 0 / 452.2 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.411, allocations: 0.6373 MB / 452.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.4111, allocations: 100.7 kB / 452.9 MB, free: 31.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.4111, allocations: 4 kB / 452.9 MB, free: 31.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.4114, allocations: 36.55 kB / 453 MB, free: 31.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.285e-05/0.4115, allocations: 15.98 kB / 453 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.4115, allocations: 13.34 kB / 453 MB, free: 31.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002963/0.4118, allocations: 195.6 kB / 453.2 MB, free: 31.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4118, allocations: 0 / 453.2 MB, free: 31.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004852/0.4123, allocations: 91.25 kB / 453.3 MB, free: 31.32 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 0.0001216/0.4124, allocations: 99.92 kB / 453.4 MB, free: 31.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005901/0.413, allocations: 321.2 kB / 453.7 MB, free: 31.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4131, allocations: 3.25 kB / 453.7 MB, free: 31.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005274/0.4136, allocations: 291.5 kB / 454 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.414, allocations: 39.31 kB / 454 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.415, allocations: 0.6551 MB / 454.7 MB, free: 30.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000205/0.4153, allocations: 0.7533 MB / 455.4 MB, free: 29.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.4154, allocations: 43.39 kB / 455.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.501e-05/0.4154, allocations: 15.59 kB / 455.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.4155, allocations: 0 / 455.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of Templates: time 0.007014/0.4225, allocations: 3.275 MB / 458.8 MB, free: 29.62 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)