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.001114/0.001114, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001234/0.001234, allocations: 193.7 kB / 16.14 MB, free: 6.699 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.288/1.288, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1944/0.1944, allocations: 22.37 MB / 312.3 MB, free: 12.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 380.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3016, allocations: 54.93 MB / 435.7 MB, free: 39.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002974/0.3047, allocations: 2.114 MB / 437.8 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3058, allocations: 0.6646 MB / 438.5 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.3059, allocations: 6.844 kB / 438.5 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.3063, allocations: 39.58 kB / 438.6 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.3064, allocations: 38.58 kB / 438.6 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.3068, allocations: 162.8 kB / 438.8 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002822/0.3071, allocations: 301.5 kB / 439 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.3073, allocations: 107.4 kB / 439.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.3074, allocations: 101.5 kB / 439.3 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.3076, allocations: 122.8 kB / 439.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.778e-05/0.3076, allocations: 13.25 kB / 439.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.702e-05/0.3077, allocations: 18.34 kB / 439.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.221e-05/0.3078, allocations: 72.41 kB / 439.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.3078, allocations: 108.2 kB / 439.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.3081, allocations: 274.6 kB / 439.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3081, allocations: 3.938 kB / 439.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3081, allocations: 0 / 439.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.3081, allocations: 0 / 439.9 MB, free: 37.38 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.001034/0.3091, allocations: 0.6082 MB / 440.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.3092, allocations: 12.38 kB / 440.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.354e-05/0.3092, allocations: 30.88 kB / 440.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.3097, allocations: 319.6 kB / 440.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.3097, allocations: 20.62 kB / 440.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.3097, allocations: 18.19 kB / 440.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003933/0.3101, allocations: 255.6 kB / 441.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3102, allocations: 0 / 441.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.3102, allocations: 11 kB / 441.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3102, allocations: 9.562 kB / 441.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.3106, allocations: 184.9 kB / 441.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009948/0.3116, allocations: 0.7063 MB / 442 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00065/0.3122, allocations: 251.4 kB / 442.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.3124, allocations: 103.9 kB / 442.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.3124, allocations: 6.875 kB / 442.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.3125, allocations: 34.56 kB / 442.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.243e-06/0.3125, allocations: 0 / 442.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002274/0.3148, allocations: 0.8138 MB / 443.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.3148, allocations: 109 kB / 443.3 MB, free: 35.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.3151, allocations: 270.7 kB / 443.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.3152, allocations: 29.7 kB / 443.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.3152, allocations: 161.1 kB / 443.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.669e-05/0.3153, allocations: 59.55 kB / 443.8 MB, free: 35.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.638e-05/0.3154, allocations: 46.5 kB / 443.9 MB, free: 34.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.447e-05/0.3154, allocations: 331.6 kB / 444.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.3156, allocations: 93.97 kB / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.3158, allocations: 138 kB / 444.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.3162, allocations: 206.1 kB / 444.6 MB, free: 34.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3162, allocations: 0 / 444.6 MB, free: 34.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004229/0.3166, allocations: 271.1 kB / 444.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.3166, allocations: 5.219 kB / 444.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3166, allocations: 0 / 444.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.3167, allocations: 7.469 kB / 444.9 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.3169, allocations: 59.06 kB / 445 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.317, allocations: 2.656 kB / 445 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.3172, allocations: 37.77 kB / 445 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.851e-05/0.3172, allocations: 9.656 kB / 445 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001619/0.3174, allocations: 168.8 kB / 445.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001173/0.3175, allocations: 108.6 kB / 445.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000191/0.3177, allocations: 166.8 kB / 445.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.765e-06/0.3177, allocations: 2.875 kB / 445.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0002853/0.318, allocations: 217.6 kB / 445.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.044e-06/0.318, allocations: 7.375 kB / 445.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-06/0.318, allocations: 3.938 kB / 445.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-06/0.318, allocations: 2.844 kB / 445.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.3183, allocations: 55.17 kB / 445.7 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.3183, allocations: 3.031 kB / 445.7 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.3185, allocations: 30.42 kB / 445.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.3185, allocations: 13.94 kB / 445.8 MB, free: 33.92 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 7.661e-05/0.3186, allocations: 191.1 kB / 446 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.3186, allocations: 27.25 kB / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008655/0.3195, allocations: 411.8 kB / 446.4 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.3195, allocations: 2.594 kB / 446.4 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3195, allocations: 4 kB / 446.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3195, allocations: 0 / 446.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.3198, allocations: 336.9 kB / 446.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.3198, allocations: 3.328 kB / 446.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.3199, allocations: 8.781 kB / 446.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004458/0.3204, allocations: 145.5 kB / 446.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.3204, allocations: 4 kB / 446.9 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002461/0.3229, allocations: 2.218 MB / 449.1 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3229, allocations: 0 / 449.1 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009712/0.3239, allocations: 0.5839 MB / 449.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.3239, allocations: 105.5 kB / 449.8 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.324, allocations: 2.625 kB / 449.8 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.3242, allocations: 33.22 kB / 449.8 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.3243, allocations: 21.19 kB / 449.8 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.3243, allocations: 5.438 kB / 449.8 MB, free: 31.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002578/0.3246, allocations: 196.9 kB / 450 MB, free: 31.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3246, allocations: 7.938 kB / 450 MB, free: 31.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004018/0.325, allocations: 88.81 kB / 450.1 MB, free: 31.02 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.29e-05/0.3251, allocations: 103.5 kB / 450.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.3256, allocations: 294.9 kB / 450.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3256, allocations: 6.875 kB / 450.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004682/0.3261, allocations: 277.1 kB / 450.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.3265, allocations: 38.84 kB / 450.8 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008857/0.3274, allocations: 0.6295 MB / 451.5 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.3276, allocations: 0.7617 MB / 452.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.3277, allocations: 50.41 kB / 452.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.13e-05/0.3277, allocations: 15.34 kB / 452.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3277, allocations: 0 / 452.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of Templates: time 0.006099/0.3339, allocations: 3.31 MB / 455.6 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)