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.001191/0.001191, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001188/0.001189, allocations: 196.5 kB / 16.14 MB, free: 6.703 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.178/1.178, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1769/0.1769, allocations: 22.36 MB / 312.3 MB, free: 12.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.91 kB / 380.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2021, allocations: 54.94 MB / 435.8 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.00213/0.2043, allocations: 1.888 MB / 437.7 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006311/0.2049, allocations: 0.5864 MB / 438.3 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.642e-05/0.205, allocations: 2.594 kB / 438.3 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.2052, allocations: 27.92 kB / 438.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.2053, allocations: 30.7 kB / 438.4 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.2055, allocations: 98.52 kB / 438.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.2057, allocations: 205.2 kB / 438.7 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.2058, allocations: 56.23 kB / 438.7 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.564e-05/0.2059, allocations: 73.94 kB / 438.8 MB, free: 38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.206, allocations: 87.34 kB / 438.9 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.206, allocations: 9.25 kB / 438.9 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.407e-05/0.2061, allocations: 10.72 kB / 438.9 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.383e-05/0.2061, allocations: 52.06 kB / 438.9 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.2062, allocations: 68.42 kB / 439 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.2063, allocations: 167 kB / 439.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2063, allocations: 2.719 kB / 439.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.2063, allocations: 0 / 439.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.858e-06/0.2063, allocations: 0 / 439.2 MB, free: 37.82 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.0007816/0.2071, allocations: 0.52 MB / 439.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.2072, allocations: 11.97 kB / 439.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.2072, allocations: 43.34 kB / 439.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.2072, allocations: 21.06 kB / 439.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.2076, allocations: 277 kB / 440 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.729e-06/0.2076, allocations: 13.7 kB / 440 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.2076, allocations: 11.97 kB / 440.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002356/0.2079, allocations: 170.3 kB / 440.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2079, allocations: 2.812 kB / 440.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.2079, allocations: 11.88 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2079, allocations: 2.75 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002159/0.2082, allocations: 124.5 kB / 440.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006715/0.2088, allocations: 0.5308 MB / 440.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004418/0.2093, allocations: 190 kB / 441.1 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.2094, allocations: 73.58 kB / 441.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.2094, allocations: 3.5 kB / 441.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.383e-05/0.2094, allocations: 34.5 kB / 441.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.223e-06/0.2094, allocations: 0 / 441.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001297/0.2107, allocations: 0.5267 MB / 441.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.108e-05/0.2108, allocations: 80.48 kB / 441.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.2111, allocations: 215.7 kB / 442 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.2111, allocations: 33.7 kB / 442 MB, free: 35.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.554e-05/0.2111, allocations: 129.6 kB / 442.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.2112, allocations: 45.45 kB / 442.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.2112, allocations: 34.89 kB / 442.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.805e-05/0.2113, allocations: 327.5 kB / 442.6 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.2114, allocations: 66.55 kB / 442.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.2115, allocations: 90.41 kB / 442.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.2117, allocations: 144.3 kB / 442.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2117, allocations: 0 / 442.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002695/0.212, allocations: 193.8 kB / 443 MB, free: 35.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.026e-06/0.212, allocations: 10.03 kB / 443.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.212, allocations: 0 / 443.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.212, allocations: 0 / 443.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.2123, allocations: 39.75 kB / 443.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.2123, allocations: 0 / 443.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.2125, allocations: 36.83 kB / 443.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.2125, allocations: 6.141 kB / 443.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001053/0.2126, allocations: 143.6 kB / 443.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.395e-05/0.2127, allocations: 80.97 kB / 443.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001288/0.2128, allocations: 118.7 kB / 443.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.182e-06/0.2128, allocations: 0 / 443.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0001914/0.213, allocations: 179.6 kB / 443.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.35e-06/0.213, allocations: 5.75 kB / 443.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-06/0.213, allocations: 0 / 443.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-06/0.213, allocations: 9.969 kB / 443.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.2132, allocations: 32.41 kB / 443.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-06/0.2132, allocations: 4 kB / 443.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.2134, allocations: 22.61 kB / 443.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.2134, allocations: 6.812 kB / 443.7 MB, free: 34.87 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 4.968e-05/0.2135, allocations: 198.4 kB / 443.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.2135, allocations: 16.66 kB / 443.9 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000542/0.2141, allocations: 284.5 kB / 444.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2141, allocations: 0 / 444.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2141, allocations: 0 / 444.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2141, allocations: 0 / 444.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.2143, allocations: 279.4 kB / 444.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2143, allocations: 0 / 444.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.8e-05/0.2144, allocations: 14.84 kB / 444.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/0.2147, allocations: 89.38 kB / 444.6 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.2147, allocations: 4 kB / 444.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.216, allocations: 1.714 MB / 446.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.216, allocations: 3 kB / 446.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006069/0.2166, allocations: 426.8 kB / 446.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.967e-05/0.2167, allocations: 98.36 kB / 446.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.2167, allocations: 6.906 kB / 446.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.2169, allocations: 25.2 kB / 446.9 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.217, allocations: 8.547 kB / 446.9 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.217, allocations: 6.719 kB / 446.9 MB, free: 32.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.2172, allocations: 172.3 kB / 447 MB, free: 32.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2172, allocations: 0 / 447 MB, free: 32.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.2175, allocations: 58.91 kB / 447.1 MB, free: 32.36 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.0007385/0.2183, allocations: 0.9634 MB / 448.1 MB, free: 31.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003245/0.2186, allocations: 209.1 kB / 448.3 MB, free: 31.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2186, allocations: 0 / 448.3 MB, free: 31.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.2189, allocations: 211.3 kB / 448.5 MB, free: 31.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.2192, allocations: 38.02 kB / 448.5 MB, free: 31.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.2214, allocations: 2.263 MB / 450.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.2215, allocations: 0.7315 MB / 451.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.303e-05/0.2216, allocations: 36.06 kB / 451.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.846e-05/0.2217, allocations: 54.02 kB / 451.6 MB, free: 29.03 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2217, allocations: 4 kB / 451.6 MB, free: 29.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01252/0.2342, allocations: 4.147 MB / 455.7 MB, free: 28.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001351/0.2344, allocations: 222.9 kB / 456 MB, free: 28.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/1.815, allocations: 0 / 456 MB, free: 28.39 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)