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.001074/0.001074, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008457/0.008457, allocations: 173.9 kB / 16.26 MB, free: 6.613 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.342/1.342, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1977/0.1977, allocations: 22.36 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003573, allocations: 11.94 kB / 383.4 MB, free: 9.367 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2513, allocations: 55.97 MB / 439.4 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.001448/0.2528, allocations: 1.535 MB / 440.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007083/0.2535, allocations: 0.5787 MB / 441.5 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.818e-05/0.2536, allocations: 2.688 kB / 441.5 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.2538, allocations: 20.23 kB / 441.5 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.2539, allocations: 31.48 kB / 441.5 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.2541, allocations: 97.31 kB / 441.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.2543, allocations: 211.4 kB / 441.8 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.2545, allocations: 52.8 kB / 441.9 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.825e-05/0.2545, allocations: 63.83 kB / 441.9 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.2547, allocations: 83.44 kB / 442 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.391e-05/0.2547, allocations: 4.562 kB / 442 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.817e-05/0.2547, allocations: 6.125 kB / 442 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.078e-05/0.2548, allocations: 43.89 kB / 442.1 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.026e-05/0.2549, allocations: 91.27 kB / 442.2 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.255, allocations: 163.9 kB / 442.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.255, allocations: 0 / 442.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.255, allocations: 0 / 442.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.255, allocations: 4 kB / 442.3 MB, free: 37.73 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.0007752/0.2558, allocations: 0.4986 MB / 442.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.2558, allocations: 13.97 kB / 442.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.71e-05/0.2559, allocations: 44.77 kB / 442.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.2559, allocations: 23.31 kB / 442.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.2563, allocations: 266.4 kB / 443.2 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.2563, allocations: 7.359 kB / 443.2 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.2563, allocations: 14.44 kB / 443.2 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.2566, allocations: 181.4 kB / 443.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.2566, allocations: 3.906 kB / 443.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.2566, allocations: 4 kB / 443.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.2567, allocations: 3.031 kB / 443.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.2569, allocations: 133.3 kB / 443.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007159/0.2576, allocations: 0.5363 MB / 444 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.2581, allocations: 203.4 kB / 444.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.2582, allocations: 71.77 kB / 444.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.2583, allocations: 3.938 kB / 444.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.354e-05/0.2583, allocations: 46.5 kB / 444.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.2583, allocations: 0 / 444.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001494/0.2598, allocations: 0.5886 MB / 445 MB, free: 36.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.2598, allocations: 83.11 kB / 445 MB, free: 36.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.2601, allocations: 212.3 kB / 445.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.2602, allocations: 28.2 kB / 445.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.577e-05/0.2602, allocations: 130.9 kB / 445.4 MB, free: 35.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.2603, allocations: 46.33 kB / 445.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.2603, allocations: 23.47 kB / 445.5 MB, free: 35.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.254e-05/0.2603, allocations: 328.8 kB / 445.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.2605, allocations: 62.61 kB / 445.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.2606, allocations: 103.6 kB / 446 MB, free: 35.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.2609, allocations: 143 kB / 446.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2609, allocations: 2.781 kB / 446.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003051/0.2612, allocations: 201.2 kB / 446.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.2612, allocations: 103.9 kB / 446.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2612, allocations: 6.641 kB / 446.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.2612, allocations: 3.938 kB / 446.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.2615, allocations: 51.48 kB / 446.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2615, allocations: 2.844 kB / 446.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.2617, allocations: 28.27 kB / 446.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.2617, allocations: 2.5 kB / 446.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.719e-06/0.2617, allocations: 9.938 kB / 446.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001767/0.2619, allocations: 123.7 kB / 446.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-06/0.2619, allocations: 0 / 446.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-06/0.2619, allocations: 0 / 446.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.2621, allocations: 44.03 kB / 446.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-06/0.2621, allocations: 2.844 kB / 446.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/0.2623, allocations: 25.64 kB / 446.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.2623, allocations: 7.031 kB / 446.7 MB, free: 34.95 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 8.55e-05/0.2624, allocations: 209.2 kB / 446.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.2624, allocations: 16.97 kB / 446.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006323/0.2631, allocations: 311.5 kB / 447.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2631, allocations: 2.875 kB / 447.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2631, allocations: 0 / 447.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2631, allocations: 0 / 447.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.2633, allocations: 269.8 kB / 447.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2634, allocations: 0 / 447.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.172e-05/0.2634, allocations: 15.38 kB / 447.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.2638, allocations: 98.38 kB / 447.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.2638, allocations: 7.906 kB / 447.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001556/0.2653, allocations: 1.768 MB / 449.4 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2654, allocations: 0 / 449.4 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007101/0.2661, allocations: 456 kB / 449.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.232e-05/0.2661, allocations: 99.92 kB / 449.9 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.2662, allocations: 10.47 kB / 449.9 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.2664, allocations: 26.72 kB / 450 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.2664, allocations: 14.88 kB / 450 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.707e-06/0.2664, allocations: 2.688 kB / 450 MB, free: 32.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002385/0.2667, allocations: 171.9 kB / 450.1 MB, free: 32.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.302e-06/0.2667, allocations: 4 kB / 450.1 MB, free: 32.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.2671, allocations: 61.47 kB / 450.2 MB, free: 32.4 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.0008662/0.2679, allocations: 0.9926 MB / 451.2 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003838/0.2683, allocations: 222.6 kB / 451.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2683, allocations: 2.625 kB / 451.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.2686, allocations: 215.2 kB / 451.6 MB, free: 31.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.269, allocations: 28.33 kB / 451.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.2716, allocations: 2.309 MB / 454 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.2717, allocations: 0.7297 MB / 454.7 MB, free: 29.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.2718, allocations: 36.66 kB / 454.7 MB, free: 29.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.456e-05/0.2719, allocations: 48.02 kB / 454.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2719, allocations: 0 / 454.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01468/0.2866, allocations: 4.047 MB / 458.8 MB, free: 28.77 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/0.2868, allocations: 237.4 kB / 459.1 MB, free: 28.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.154, allocations: 0 / 459.1 MB, free: 28.51 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/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)