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) 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.0009565/0.0009565, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.001232/0.001232, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2256/0.2256, allocations: 22.35 MB / 313.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 8 kB / 382.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3705, allocations: 55.97 MB / 438.6 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.001694/0.3722, allocations: 1.495 MB / 440.1 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008035/0.373, allocations: 0.5561 MB / 440.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.921e-05/0.3732, allocations: 0 / 440.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.3734, allocations: 24.45 kB / 440.7 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.3736, allocations: 34.12 kB / 440.7 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.3738, allocations: 78.91 kB / 440.8 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.374, allocations: 183.2 kB / 440.9 MB, free: 38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.3742, allocations: 55.23 kB / 441 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.952e-05/0.3743, allocations: 72.12 kB / 441.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.3744, allocations: 79.25 kB / 441.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.3745, allocations: 5.062 kB / 441.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.276e-05/0.3745, allocations: 5.438 kB / 441.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.912e-05/0.3746, allocations: 43.5 kB / 441.2 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.739e-05/0.3746, allocations: 47.55 kB / 441.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.3747, allocations: 128.7 kB / 441.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3748, allocations: 4 kB / 441.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3748, allocations: 0 / 441.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.3748, allocations: 3.938 kB / 441.4 MB, free: 37.82 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0008249/0.3756, allocations: 0.4939 MB / 441.9 MB, free: 37.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.3756, allocations: 9.375 kB / 441.9 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.292e-05/0.3757, allocations: 21.44 kB / 441.9 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003677/0.3761, allocations: 268.8 kB / 442.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.3761, allocations: 9.828 kB / 442.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/0.3761, allocations: 12.53 kB / 442.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.3764, allocations: 176.2 kB / 442.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.3765, allocations: 0 / 442.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.3765, allocations: 7.953 kB / 442.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3765, allocations: 2.906 kB / 442.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002359/0.3767, allocations: 134.6 kB / 442.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007873/0.3775, allocations: 0.5471 MB / 443 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005023/0.3781, allocations: 202.1 kB / 443.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.3782, allocations: 71.27 kB / 443.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.3782, allocations: 4 kB / 443.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.3782, allocations: 37.34 kB / 443.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.3783, allocations: 0 / 443.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001378/0.3796, allocations: 0.5893 MB / 443.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.3797, allocations: 79.95 kB / 444 MB, free: 36.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.38, allocations: 213.6 kB / 444.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.38, allocations: 25.7 kB / 444.3 MB, free: 36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.38, allocations: 136.2 kB / 444.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.3801, allocations: 41.31 kB / 444.4 MB, free: 35.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.689e-06/0.3801, allocations: 8 kB / 444.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.3802, allocations: 323.9 kB / 444.8 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.3803, allocations: 64.64 kB / 444.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.3804, allocations: 93.3 kB / 444.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.3805, allocations: 74.25 kB / 445 MB, free: 35.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3806, allocations: 0 / 445 MB, free: 35.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002928/0.3809, allocations: 195.6 kB / 445.2 MB, free: 35.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/0.3809, allocations: 107.8 kB / 445.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3809, allocations: 0 / 445.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3809, allocations: 0 / 445.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.3812, allocations: 45.09 kB / 445.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3812, allocations: 0 / 445.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.3813, allocations: 39.75 kB / 445.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.3814, allocations: 2.875 kB / 445.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-06/0.3814, allocations: 2.969 kB / 445.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001771/0.3816, allocations: 130.4 kB / 445.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-06/0.3816, allocations: 7.938 kB / 445.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-06/0.3816, allocations: 3.953 kB / 445.5 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.3818, allocations: 38.3 kB / 445.5 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-06/0.3818, allocations: 0 / 445.5 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.3819, allocations: 30.75 kB / 445.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.3819, allocations: 10.78 kB / 445.6 MB, free: 35.14 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.862e-05/0.382, allocations: 197.7 kB / 445.8 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/0.3821, allocations: 16.38 kB / 445.8 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005892/0.3827, allocations: 303.7 kB / 446.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3827, allocations: 4 kB / 446.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3827, allocations: 3.031 kB / 446.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3827, allocations: 0 / 446.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.3829, allocations: 273 kB / 446.4 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.383, allocations: 0 / 446.4 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.179e-05/0.3831, allocations: 13.08 kB / 446.4 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003276/0.3834, allocations: 100.8 kB / 446.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.3834, allocations: 6.719 kB / 446.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/0.385, allocations: 1.757 MB / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.385, allocations: 0 / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006556/0.3857, allocations: 468.4 kB / 448.7 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.986e-05/0.3857, allocations: 98.83 kB / 448.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.3857, allocations: 3.984 kB / 448.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.3859, allocations: 38.52 kB / 448.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.361e-05/0.386, allocations: 6.234 kB / 448.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.386, allocations: 2.844 kB / 448.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002207/0.3862, allocations: 173.1 kB / 449 MB, free: 32.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3862, allocations: 0 / 449 MB, free: 32.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003465/0.3866, allocations: 57.97 kB / 449.1 MB, free: 32.61 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 9.681e-05/0.3867, allocations: 101.3 kB / 449.2 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.3871, allocations: 215 kB / 449.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3871, allocations: 3.938 kB / 449.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002999/0.3874, allocations: 215.3 kB / 449.6 MB, free: 32.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003278/0.3878, allocations: 31.39 kB / 449.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006572/0.3884, allocations: 449.6 kB / 450.1 MB, free: 32.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.3886, allocations: 0.7335 MB / 450.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.3887, allocations: 31.47 kB / 450.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.403e-05/0.3888, allocations: 18.88 kB / 450.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3888, allocations: 4 kB / 450.8 MB, free: 31.31 MB / 350.1 MB Notification: Performance of Templates: time 0.005251/0.394, allocations: 2.179 MB / 453 MB, free: 31.16 MB / 350.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 -variableFilter=.* -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)