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.001021/0.001021, allocations: 98.83 kB / 15.05 MB, free: 1.105 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.0009263/0.0009263, allocations: 177.3 kB / 15.95 MB, free: 216 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.405/1.405, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2682/0.2682, allocations: 22.34 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003417, allocations: 8 kB / 382.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3359, allocations: 55.97 MB / 438.5 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.001859/0.3378, allocations: 1.495 MB / 440 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008168/0.3386, allocations: 0.5533 MB / 440.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.169e-05/0.3387, allocations: 0 / 440.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002997/0.339, allocations: 25.53 kB / 440.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.3392, allocations: 35.5 kB / 440.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.3394, allocations: 84.86 kB / 440.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.3396, allocations: 122.6 kB / 440.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.3397, allocations: 43.78 kB / 440.8 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3399, allocations: 73.44 kB / 440.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.34, allocations: 76.95 kB / 441 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.851e-05/0.3401, allocations: 6.312 kB / 441 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.446e-05/0.3401, allocations: 3.125 kB / 441 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.408e-05/0.3402, allocations: 40.69 kB / 441 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.097e-05/0.3402, allocations: 50.8 kB / 441.1 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.3403, allocations: 133.7 kB / 441.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.3404, allocations: 0 / 441.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3404, allocations: 0 / 441.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.3404, allocations: 0 / 441.2 MB, free: 37.66 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.000941/0.3413, allocations: 0.4887 MB / 441.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3414, allocations: 8.375 kB / 441.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.3414, allocations: 26.55 kB / 441.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.3419, allocations: 268.4 kB / 442 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.3419, allocations: 13.8 kB / 442 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.342, allocations: 12.41 kB / 442 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.3422, allocations: 171.5 kB / 442.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3423, allocations: 0 / 442.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.3423, allocations: 7.953 kB / 442.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3423, allocations: 2.906 kB / 442.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.3426, allocations: 130 kB / 442.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009335/0.3435, allocations: 0.5369 MB / 442.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005329/0.3441, allocations: 204.3 kB / 443.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-05/0.3441, allocations: 2.781 kB / 443.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.3441, allocations: 38.56 kB / 443.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.3441, allocations: 3.938 kB / 443.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001618/0.3458, allocations: 0.5846 MB / 443.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.3458, allocations: 84.08 kB / 443.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.3461, allocations: 210.8 kB / 444 MB, free: 35.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.3462, allocations: 28.64 kB / 444 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.722e-05/0.3463, allocations: 135.3 kB / 444.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.92e-05/0.3463, allocations: 44.58 kB / 444.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.956e-06/0.3463, allocations: 0 / 444.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.715e-05/0.3464, allocations: 329.2 kB / 444.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3465, allocations: 64.11 kB / 444.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.3467, allocations: 89.55 kB / 444.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.3468, allocations: 75.7 kB / 444.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3468, allocations: 0 / 444.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003354/0.3472, allocations: 200.9 kB / 444.9 MB, free: 35.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.473e-05/0.3473, allocations: 185.2 kB / 445.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3473, allocations: 2.562 kB / 445.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.3473, allocations: 0 / 445.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/0.3476, allocations: 46.27 kB / 445.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.3476, allocations: 3.469 kB / 445.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.3478, allocations: 32.48 kB / 445.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.3478, allocations: 10.31 kB / 445.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.3478, allocations: 4.406 kB / 445.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001965/0.348, allocations: 126.2 kB / 445.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-06/0.348, allocations: 0 / 445.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-06/0.348, allocations: 3.062 kB / 445.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.3483, allocations: 37.22 kB / 445.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.3483, allocations: 6.906 kB / 445.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.3484, allocations: 24.16 kB / 445.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.3484, allocations: 14.72 kB / 445.4 MB, free: 34.93 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 0.0001236/0.3486, allocations: 208.2 kB / 445.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.3486, allocations: 13.83 kB / 445.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006669/0.3493, allocations: 303.8 kB / 445.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3493, allocations: 3.062 kB / 445.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3493, allocations: 4 kB / 445.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3493, allocations: 0 / 445.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000254/0.3496, allocations: 265.7 kB / 446.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3496, allocations: 2.594 kB / 446.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.015e-05/0.3497, allocations: 11.67 kB / 446.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003561/0.35, allocations: 96.95 kB / 446.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.3501, allocations: 2.781 kB / 446.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001715/0.3518, allocations: 1.798 MB / 448.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3518, allocations: 0 / 448.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007475/0.3526, allocations: 477.7 kB / 448.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.3526, allocations: 94.7 kB / 448.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.69e-05/0.3527, allocations: 7.953 kB / 448.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3529, allocations: 32.94 kB / 448.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.3529, allocations: 13.53 kB / 448.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.353, allocations: 3.781 kB / 448.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.3532, allocations: 171.8 kB / 448.9 MB, free: 32.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3532, allocations: 0 / 448.9 MB, free: 32.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.3536, allocations: 54.22 kB / 448.9 MB, free: 32.39 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 0.0001327/0.3537, allocations: 103.1 kB / 449 MB, free: 32.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004322/0.3542, allocations: 209.5 kB / 449.2 MB, free: 32.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3542, allocations: 0 / 449.2 MB, free: 32.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003162/0.3545, allocations: 222.4 kB / 449.5 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.3548, allocations: 23.92 kB / 449.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006888/0.3555, allocations: 449.7 kB / 449.9 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.3557, allocations: 0.7417 MB / 450.7 MB, free: 31.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.3558, allocations: 30.98 kB / 450.7 MB, free: 31.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.336e-05/0.3558, allocations: 19.72 kB / 450.7 MB, free: 31.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3559, allocations: 0 / 450.7 MB, free: 31.09 MB / 350.1 MB Notification: Performance of Templates: time 0.005262/0.3611, allocations: 2.172 MB / 452.9 MB, free: 30.94 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: