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: "" <> 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.001147/0.001147, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 198 kB / 16.54 MB, free: 6.672 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1999/0.1999, allocations: 22.36 MB / 312.8 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001404, allocations: 63.89 kB / 381.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2514, allocations: 54.94 MB / 436.6 MB, free: 39.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003025/0.2545, allocations: 2.049 MB / 438.6 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009491/0.2555, allocations: 0.6902 MB / 439.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.2556, allocations: 5.438 kB / 439.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002813/0.2559, allocations: 43.22 kB / 439.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.256, allocations: 49.33 kB / 439.4 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.2564, allocations: 182.7 kB / 439.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.2566, allocations: 327 kB / 439.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001944/0.2568, allocations: 106.1 kB / 440 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.257, allocations: 114.4 kB / 440.1 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.2572, allocations: 138 kB / 440.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.023e-05/0.2572, allocations: 27.19 kB / 440.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.987e-05/0.2573, allocations: 28.22 kB / 440.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.2574, allocations: 83.52 kB / 440.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.869e-05/0.2575, allocations: 125.2 kB / 440.5 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.2577, allocations: 282.4 kB / 440.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2577, allocations: 0 / 440.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2577, allocations: 3.938 kB / 440.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.2578, allocations: 2.656 kB / 440.8 MB, free: 37.29 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.001101/0.2589, allocations: 0.6081 MB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.2589, allocations: 8.375 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.174e-05/0.259, allocations: 55.8 kB / 441.5 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.418e-05/0.259, allocations: 32.16 kB / 441.5 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.2595, allocations: 320.2 kB / 441.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.2595, allocations: 20.14 kB / 441.8 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.2596, allocations: 19.09 kB / 441.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.26, allocations: 250.7 kB / 442.1 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.26, allocations: 0 / 442.1 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.26, allocations: 10.78 kB / 442.1 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.26, allocations: 9.594 kB / 442.1 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003601/0.2604, allocations: 189.2 kB / 442.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.2614, allocations: 0.7064 MB / 443 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006684/0.2621, allocations: 256.2 kB / 443.3 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.2623, allocations: 103.2 kB / 443.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.2623, allocations: 6.906 kB / 443.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/0.2623, allocations: 34.88 kB / 443.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.2623, allocations: 0 / 443.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002419/0.2648, allocations: 0.8175 MB / 444.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.2648, allocations: 102.8 kB / 444.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003402/0.2652, allocations: 267.1 kB / 444.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.2652, allocations: 32.67 kB / 444.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.2653, allocations: 157.3 kB / 444.8 MB, free: 34.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.864e-05/0.2653, allocations: 70.61 kB / 444.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/0.2654, allocations: 40.64 kB / 444.9 MB, free: 34.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.143e-05/0.2654, allocations: 331.1 kB / 445.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.2656, allocations: 99.58 kB / 445.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.2658, allocations: 133.2 kB / 445.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003532/0.2662, allocations: 215 kB / 445.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2662, allocations: 0 / 445.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004335/0.2666, allocations: 262.9 kB / 445.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.2667, allocations: 5.625 kB / 445.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.2667, allocations: 3.156 kB / 445.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.2667, allocations: 3.938 kB / 445.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.267, allocations: 61.3 kB / 446 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.267, allocations: 6.25 kB / 446 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002173/0.2672, allocations: 36.09 kB / 446 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2673, allocations: 5.875 kB / 446 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001622/0.2674, allocations: 166.7 kB / 446.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001154/0.2676, allocations: 110.9 kB / 446.3 MB, free: 34.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001926/0.2678, allocations: 168 kB / 446.4 MB, free: 33.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.02e-07/0.2678, allocations: 0 / 446.4 MB, free: 33.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0002652/0.268, allocations: 216.2 kB / 446.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.742e-06/0.268, allocations: 15.19 kB / 446.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-06/0.2681, allocations: 2.75 kB / 446.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-06/0.2681, allocations: 0 / 446.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.2683, allocations: 56.64 kB / 446.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.2683, allocations: 3.781 kB / 446.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.2685, allocations: 30.52 kB / 446.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.2685, allocations: 9.719 kB / 446.8 MB, free: 33.78 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 8.853e-05/0.2686, allocations: 191.8 kB / 447 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.895e-05/0.2687, allocations: 34.86 kB / 447 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009133/0.2696, allocations: 403.2 kB / 447.4 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2696, allocations: 6.438 kB / 447.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2696, allocations: 0 / 447.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2696, allocations: 0 / 447.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003272/0.27, allocations: 330.2 kB / 447.7 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.27, allocations: 4 kB / 447.7 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2701, allocations: 19.61 kB / 447.7 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004921/0.2706, allocations: 144.7 kB / 447.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.2706, allocations: 3.328 kB / 447.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002716/0.2733, allocations: 2.427 MB / 450.3 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2734, allocations: 4.031 kB / 450.3 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2744, allocations: 0.577 MB / 450.9 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.748e-05/0.2745, allocations: 107.9 kB / 451 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.2745, allocations: 10.56 kB / 451 MB, free: 30.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.2748, allocations: 29.5 kB / 451 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.981e-05/0.2748, allocations: 16.89 kB / 451.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.2749, allocations: 3.375 kB / 451.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002816/0.2751, allocations: 199.8 kB / 451.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2752, allocations: 0 / 451.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.2756, allocations: 85.56 kB / 451.3 MB, free: 30.71 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 0.001242/0.2768, allocations: 1.137 MB / 452.5 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005706/0.2774, allocations: 307.7 kB / 452.8 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2774, allocations: 4.25 kB / 452.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000496/0.2779, allocations: 278.4 kB / 453.1 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.2784, allocations: 54.98 kB / 453.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.2817, allocations: 2.726 MB / 455.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001753/0.2819, allocations: 0.7691 MB / 456.6 MB, free: 27.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.282, allocations: 40.53 kB / 456.6 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.2821, allocations: 79.44 kB / 456.7 MB, free: 27.09 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2821, allocations: 0 / 456.7 MB, free: 27.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02743/0.3096, allocations: 6.178 MB / 462.9 MB, free: 26.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.9, allocations: 11.73 kB / 462.9 MB, free: 26.45 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits_res.csv --start-time 0 --stop-time 150 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.3 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)