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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",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.0009843/0.0009843, allocations: 99.86 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.001037/0.001037, allocations: 177.3 kB / 15.94 MB, free: 228 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.436/1.436, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2747/0.2747, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003366, allocations: 8 kB / 382.6 MB, free: 9.828 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3863, allocations: 55.99 MB / 438.6 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.001916/0.3883, allocations: 1.499 MB / 440.1 MB, free: 38.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008861/0.3892, allocations: 0.5484 MB / 440.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.717e-05/0.3893, allocations: 3.938 kB / 440.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003519/0.3897, allocations: 15.77 kB / 440.6 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.3898, allocations: 41.23 kB / 440.7 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.39, allocations: 86.28 kB / 440.8 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.3902, allocations: 114.8 kB / 440.9 MB, free: 38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.3904, allocations: 47.03 kB / 440.9 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.3905, allocations: 76.27 kB / 441 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.3906, allocations: 68.3 kB / 441.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.3907, allocations: 7.531 kB / 441.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.621e-05/0.3907, allocations: 5 kB / 441.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.823e-05/0.3908, allocations: 48.45 kB / 441.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.054e-05/0.3908, allocations: 47.17 kB / 441.2 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.391, allocations: 124.2 kB / 441.3 MB, free: 37.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.391, allocations: 2.781 kB / 441.3 MB, free: 37.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.899e-06/0.391, allocations: 3.328 kB / 441.3 MB, free: 37.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.391, allocations: 3.938 kB / 441.3 MB, free: 37.84 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.0009232/0.392, allocations: 0.4906 MB / 441.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.392, allocations: 8.75 kB / 441.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.3921, allocations: 41.5 kB / 441.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.767e-05/0.3921, allocations: 20.91 kB / 441.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004177/0.3925, allocations: 277.6 kB / 442.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.3926, allocations: 7.047 kB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.3926, allocations: 12.5 kB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.3929, allocations: 168.4 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.3929, allocations: 3.953 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.3929, allocations: 4 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.393, allocations: 2.906 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.3932, allocations: 134.8 kB / 442.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008421/0.3941, allocations: 0.5443 MB / 443 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/0.3946, allocations: 202.6 kB / 443.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.3946, allocations: 2.812 kB / 443.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.3947, allocations: 42.5 kB / 443.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.3947, allocations: 0 / 443.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001598/0.3963, allocations: 0.5915 MB / 443.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.3963, allocations: 79.73 kB / 443.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.3967, allocations: 214.2 kB / 444.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.3967, allocations: 25.7 kB / 444.1 MB, free: 36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.518e-05/0.3968, allocations: 129.1 kB / 444.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.3968, allocations: 48.98 kB / 444.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.3968, allocations: 0 / 444.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.3969, allocations: 335.6 kB / 444.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3971, allocations: 64.14 kB / 444.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3972, allocations: 85 kB / 444.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.3973, allocations: 76.47 kB / 444.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3973, allocations: 0 / 444.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003318/0.3977, allocations: 199.2 kB / 445.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.534e-05/0.3978, allocations: 184.1 kB / 445.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3978, allocations: 2.781 kB / 445.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3978, allocations: 0 / 445.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.3981, allocations: 46.95 kB / 445.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.3981, allocations: 3.125 kB / 445.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.3983, allocations: 35.58 kB / 445.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.3983, allocations: 5.562 kB / 445.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.3983, allocations: 6.859 kB / 445.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001948/0.3985, allocations: 128.6 kB / 445.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-06/0.3985, allocations: 0 / 445.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-06/0.3985, allocations: 0 / 445.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.3987, allocations: 40.3 kB / 445.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-06/0.3987, allocations: 0 / 445.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.3989, allocations: 31.86 kB / 445.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.3989, allocations: 6.906 kB / 445.5 MB, free: 35.06 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.0001151/0.399, allocations: 203.1 kB / 445.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.516e-05/0.399, allocations: 21.52 kB / 445.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006572/0.3997, allocations: 302.6 kB / 446.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3997, allocations: 2.969 kB / 446.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3997, allocations: 7.281 kB / 446.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3997, allocations: 0 / 446.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002798/0.4, allocations: 267.9 kB / 446.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4, allocations: 0 / 446.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.184e-05/0.4001, allocations: 11.25 kB / 446.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000364/0.4005, allocations: 96.56 kB / 446.4 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.4005, allocations: 4 kB / 446.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/0.4024, allocations: 1.79 MB / 448.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4024, allocations: 0 / 448.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007529/0.4031, allocations: 464.3 kB / 448.7 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.508e-05/0.4032, allocations: 105.8 kB / 448.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.4032, allocations: 6.859 kB / 448.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.4034, allocations: 25.73 kB / 448.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.4035, allocations: 20.17 kB / 448.8 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.4035, allocations: 3.062 kB / 448.8 MB, free: 32.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002552/0.4038, allocations: 167.1 kB / 449 MB, free: 32.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4038, allocations: 2.719 kB / 449 MB, free: 32.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003508/0.4041, allocations: 60.41 kB / 449.1 MB, free: 32.51 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.0009771/0.4051, allocations: 1.005 MB / 450.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004259/0.4056, allocations: 212 kB / 450.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4056, allocations: 3.156 kB / 450.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003372/0.4059, allocations: 213.2 kB / 450.5 MB, free: 31.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.4062, allocations: 24.12 kB / 450.5 MB, free: 31.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.4084, allocations: 1.382 MB / 451.9 MB, free: 30.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.4086, allocations: 0.7372 MB / 452.6 MB, free: 30.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.4088, allocations: 37.41 kB / 452.7 MB, free: 30 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.094e-05/0.4089, allocations: 48.09 kB / 452.7 MB, free: 29.96 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4089, allocations: 0 / 452.7 MB, free: 29.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01642/0.4253, allocations: 4.014 MB / 456.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.4255, allocations: 212.7 kB / 456.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.199, allocations: 5.062 kB / 456.9 MB, free: 29.43 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_below_limit_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_below_limit.fmu > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1) Environment - environmentSimulation: