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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld 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.001133/0.001133, allocations: 108 kB / 15.61 MB, free: 152 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.001157/0.001157, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1904/0.1904, allocations: 22.35 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.89 kB / 381.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2713, allocations: 54.94 MB / 436.6 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002595/0.274, allocations: 1.817 MB / 438.4 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008526/0.2749, allocations: 0.596 MB / 439 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.171e-05/0.275, allocations: 2.688 kB / 439 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.2752, allocations: 28.86 kB / 439 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.2754, allocations: 47.08 kB / 439.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.2756, allocations: 110.3 kB / 439.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.2758, allocations: 215.4 kB / 439.4 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.2759, allocations: 61.23 kB / 439.5 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.43e-05/0.276, allocations: 77.95 kB / 439.5 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.2762, allocations: 101.4 kB / 439.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.2762, allocations: 16.06 kB / 439.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.785e-05/0.2762, allocations: 18 kB / 439.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.566e-05/0.2763, allocations: 48.86 kB / 439.7 MB, free: 38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.724e-05/0.2764, allocations: 83.41 kB / 439.8 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.2766, allocations: 180.8 kB / 440 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2766, allocations: 0 / 440 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2766, allocations: 0 / 440 MB, free: 37.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.2766, allocations: 0 / 440 MB, free: 37.87 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.0008689/0.2775, allocations: 0.5142 MB / 440.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2775, allocations: 10.66 kB / 440.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.124e-05/0.2775, allocations: 44.36 kB / 440.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.326e-05/0.2776, allocations: 23.69 kB / 440.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.278, allocations: 276.2 kB / 440.8 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.278, allocations: 10.17 kB / 440.8 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/0.278, allocations: 16.53 kB / 440.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.2783, allocations: 173.4 kB / 441 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2783, allocations: 0 / 441 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.2784, allocations: 10.59 kB / 441 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.2784, allocations: 6.531 kB / 441 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.2786, allocations: 120.8 kB / 441.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000733/0.2794, allocations: 0.5311 MB / 441.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.2799, allocations: 192.1 kB / 441.9 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.28, allocations: 70.12 kB / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.28, allocations: 0 / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.28, allocations: 41.31 kB / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.28, allocations: 0 / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001469/0.2815, allocations: 0.5264 MB / 442.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.2816, allocations: 81.11 kB / 442.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.2819, allocations: 210.5 kB / 442.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.2819, allocations: 29.7 kB / 442.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.236e-05/0.2819, allocations: 125.7 kB / 443 MB, free: 35.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.282, allocations: 48.44 kB / 443 MB, free: 35.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/0.282, allocations: 40.5 kB / 443 MB, free: 35.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.471e-05/0.2821, allocations: 331.5 kB / 443.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.2822, allocations: 65.69 kB / 443.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.2823, allocations: 84.91 kB / 443.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.2826, allocations: 140.2 kB / 443.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2826, allocations: 0 / 443.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002982/0.2829, allocations: 193.6 kB / 443.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2829, allocations: 9.281 kB / 443.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2829, allocations: 0 / 443.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2829, allocations: 2.969 kB / 443.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.2832, allocations: 41.78 kB / 443.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2832, allocations: 6.719 kB / 443.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.2834, allocations: 33.7 kB / 443.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.2834, allocations: 2.719 kB / 443.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001121/0.2835, allocations: 146.5 kB / 444.1 MB, free: 35.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.938e-05/0.2836, allocations: 76.03 kB / 444.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001378/0.2837, allocations: 118.3 kB / 444.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.62e-07/0.2838, allocations: 2.531 kB / 444.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002029/0.284, allocations: 170.9 kB / 444.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.162e-06/0.284, allocations: 9.812 kB / 444.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-06/0.284, allocations: 0 / 444.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-06/0.284, allocations: 0 / 444.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.2842, allocations: 45.3 kB / 444.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-06/0.2842, allocations: 3.938 kB / 444.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.2844, allocations: 22.56 kB / 444.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.2844, allocations: 2.812 kB / 444.5 MB, free: 34.92 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.949e-05/0.2845, allocations: 191.9 kB / 444.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/0.2846, allocations: 15.59 kB / 444.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006054/0.2852, allocations: 285.3 kB / 445 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2852, allocations: 3.062 kB / 445 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2852, allocations: 0 / 445 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2852, allocations: 0 / 445 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002231/0.2854, allocations: 278.2 kB / 445.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2854, allocations: 0 / 445.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.522e-05/0.2855, allocations: 16.03 kB / 445.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003128/0.2859, allocations: 95.38 kB / 445.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.2859, allocations: 4 kB / 445.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.2875, allocations: 1.831 MB / 447.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2875, allocations: 3.938 kB / 447.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006827/0.2882, allocations: 441.2 kB / 447.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.2883, allocations: 94.92 kB / 447.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.2883, allocations: 0 / 447.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.2885, allocations: 21.83 kB / 447.8 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.2886, allocations: 13.09 kB / 447.8 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.2886, allocations: 7.094 kB / 447.8 MB, free: 32.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.2888, allocations: 171.1 kB / 448 MB, free: 32.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2888, allocations: 2.719 kB / 448 MB, free: 32.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.2892, allocations: 57.75 kB / 448 MB, free: 32.3 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 (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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008661/0.2901, allocations: 0.9544 MB / 449 MB, free: 31.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003931/0.2905, allocations: 225.5 kB / 449.2 MB, free: 31.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2905, allocations: 0 / 449.2 MB, free: 31.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.2908, allocations: 204 kB / 449.4 MB, free: 31.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.2911, allocations: 42.36 kB / 449.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.2936, allocations: 2.214 MB / 451.6 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.2938, allocations: 0.7354 MB / 452.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.2939, allocations: 33.67 kB / 452.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.782e-05/0.294, allocations: 56.25 kB / 452.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.294, allocations: 0 / 452.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.3167, allocations: 4.439 MB / 456.9 MB, free: 28.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.1, allocations: 16.75 kB / 456.9 MB, free: 28.49 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Keep_below_limit_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_below_limit.fmu > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)