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) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 99.62 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.001471/0.001471, 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.468/1.468, allocations: 223.2 MB / 239.9 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2145/0.2145, allocations: 22.35 MB / 313.3 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003373, allocations: 8 kB / 382.6 MB, free: 9.828 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3194, allocations: 55.98 MB / 438.6 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.001948/0.3215, allocations: 1.698 MB / 440.3 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008998/0.3224, allocations: 0.6329 MB / 440.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.3225, allocations: 3.125 kB / 440.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.3228, allocations: 27.88 kB / 440.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.3229, allocations: 52.05 kB / 441 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.3233, allocations: 127.8 kB / 441.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002139/0.3235, allocations: 176.5 kB / 441.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.3236, allocations: 84.78 kB / 441.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.3238, allocations: 102.3 kB / 441.5 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.3239, allocations: 104.7 kB / 441.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.3239, allocations: 10.16 kB / 441.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.476e-05/0.324, allocations: 7.594 kB / 441.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.402e-05/0.3241, allocations: 53.45 kB / 441.6 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.97e-05/0.3241, allocations: 56.89 kB / 441.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.3243, allocations: 203.3 kB / 441.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.3243, allocations: 6.75 kB / 441.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3243, allocations: 0 / 441.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3243, allocations: 0 / 441.9 MB, free: 37.25 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.000982/0.3253, allocations: 0.5892 MB / 442.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3253, allocations: 10.38 kB / 442.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.612e-05/0.3254, allocations: 51.36 kB / 442.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.3255, allocations: 29.81 kB / 442.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.3259, allocations: 300.6 kB / 442.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.3259, allocations: 16.88 kB / 442.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.326, allocations: 24.38 kB / 442.9 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.3264, allocations: 253.6 kB / 443.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3264, allocations: 6.828 kB / 443.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.3264, allocations: 8 kB / 443.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.3265, allocations: 10.22 kB / 443.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003736/0.3268, allocations: 199.1 kB / 443.4 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.3279, allocations: 0.7277 MB / 444.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006794/0.3286, allocations: 271.6 kB / 444.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.3286, allocations: 7.281 kB / 444.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.3286, allocations: 33.84 kB / 444.4 MB, free: 35.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.442e-06/0.3287, allocations: 0 / 444.4 MB, free: 35.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002538/0.3312, allocations: 0.9436 MB / 445.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.3313, allocations: 109.4 kB / 445.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003563/0.3316, allocations: 260.3 kB / 445.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.3317, allocations: 29.61 kB / 445.7 MB, free: 35.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.3318, allocations: 166.3 kB / 445.9 MB, free: 34.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.3318, allocations: 60.3 kB / 446 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.196e-05/0.3318, allocations: 7 kB / 446 MB, free: 34.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.3319, allocations: 334.8 kB / 446.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.3321, allocations: 93.78 kB / 446.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.3323, allocations: 139.6 kB / 446.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.3325, allocations: 104.8 kB / 446.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3325, allocations: 0 / 446.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004621/0.333, allocations: 294.4 kB / 446.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.992e-05/0.3331, allocations: 267.7 kB / 447.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3331, allocations: 0 / 447.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3331, allocations: 7.312 kB / 447.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.3334, allocations: 64.52 kB / 447.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.3334, allocations: 2.75 kB / 447.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.3337, allocations: 47.52 kB / 447.3 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.3337, allocations: 5.719 kB / 447.3 MB, free: 34.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.305e-06/0.3337, allocations: 8.406 kB / 447.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002695/0.334, allocations: 175.7 kB / 447.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-06/0.334, allocations: 0 / 447.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.807e-06/0.334, allocations: 3.688 kB / 447.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.3342, allocations: 51.58 kB / 447.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.347e-06/0.3342, allocations: 3 kB / 447.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.3344, allocations: 26.86 kB / 447.6 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.3344, allocations: 13.44 kB / 447.6 MB, free: 33.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.3346, allocations: 215.5 kB / 447.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.434e-05/0.3346, allocations: 24.3 kB / 447.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009703/0.3356, allocations: 453.7 kB / 448.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3356, allocations: 10.94 kB / 448.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3356, allocations: 0 / 448.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3356, allocations: 6.797 kB / 448.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.336, allocations: 324.2 kB / 448.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.336, allocations: 0 / 448.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.3361, allocations: 18.83 kB / 448.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005106/0.3366, allocations: 159.7 kB / 448.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.3366, allocations: 6.312 kB / 448.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004284/0.3409, allocations: 2.369 MB / 451.1 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.341, allocations: 320 / 451.1 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.3428, allocations: 0.6369 MB / 451.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/0.3429, allocations: 100.4 kB / 451.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.25e-05/0.3429, allocations: 9.188 kB / 451.9 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/0.3433, allocations: 35.64 kB / 451.9 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/0.3434, allocations: 22.78 kB / 451.9 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.3435, allocations: 7.438 kB / 451.9 MB, free: 31.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000417/0.3439, allocations: 196.4 kB / 452.1 MB, free: 30.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3439, allocations: 0 / 452.1 MB, free: 30.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007269/0.3446, allocations: 92.75 kB / 452.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 (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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002135/0.3468, allocations: 1.174 MB / 453.4 MB, free: 30.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.3478, allocations: 315.4 kB / 453.7 MB, free: 30.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.3479, allocations: 0 / 453.7 MB, free: 30.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007854/0.3487, allocations: 286.2 kB / 454 MB, free: 29.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.3491, allocations: 36.66 kB / 454 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004298/0.3534, allocations: 1.982 MB / 456 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.3537, allocations: 0.7702 MB / 456.8 MB, free: 28.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002313/0.3539, allocations: 43.7 kB / 456.8 MB, free: 28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3541, allocations: 79.05 kB / 456.9 MB, free: 27.95 MB / 350.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3541, allocations: 0 / 456.9 MB, free: 27.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.3762, allocations: 5.594 MB / 462.5 MB, free: 27.56 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.3765, allocations: 218.5 kB / 462.7 MB, free: 27.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.239, allocations: 0 / 462.7 MB, free: 27.32 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1) Environment - environmentSimulation: