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.0008244/0.0008248, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.005649/0.005649, allocations: 168.3 kB / 16.26 MB, free: 6.652 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.095/1.095, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1596/0.1596, allocations: 22.35 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002238/0.0002239, allocations: 11.94 kB / 383.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1947, 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_within_two_limits): time 0.001366/0.1961, allocations: 1.754 MB / 441.1 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007514/0.1968, allocations: 0.6637 MB / 441.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.939e-05/0.197, allocations: 7.156 kB / 441.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002086/0.1972, allocations: 32.17 kB / 441.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.1973, allocations: 38.89 kB / 441.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.1976, allocations: 158.5 kB / 442 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002139/0.1978, allocations: 300.4 kB / 442.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.198, allocations: 100.3 kB / 442.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.664e-05/0.198, allocations: 87.59 kB / 442.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.1982, allocations: 117.4 kB / 442.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.201e-05/0.1982, allocations: 12.31 kB / 442.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.407e-05/0.1982, allocations: 8.281 kB / 442.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.105e-05/0.1983, allocations: 54.36 kB / 442.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.139e-05/0.1984, allocations: 128.4 kB / 442.8 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.1985, allocations: 257.3 kB / 443.1 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1985, allocations: 0 / 443.1 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1986, allocations: 7.375 kB / 443.1 MB, free: 37.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1986, allocations: 0 / 443.1 MB, free: 37.28 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.0007957/0.1994, allocations: 0.5706 MB / 443.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.1994, allocations: 12.62 kB / 443.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.167e-05/0.1994, allocations: 59.11 kB / 443.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.456e-05/0.1995, allocations: 31.59 kB / 443.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.1998, allocations: 318.7 kB / 444.1 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.1999, allocations: 21.31 kB / 444.1 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/0.1999, allocations: 15.91 kB / 444.1 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.2002, allocations: 264.4 kB / 444.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2003, allocations: 0 / 444.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.2003, allocations: 10.78 kB / 444.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2003, allocations: 3.812 kB / 444.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/0.2006, allocations: 203.3 kB / 444.6 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008445/0.2015, allocations: 0.7208 MB / 445.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.2021, allocations: 283.4 kB / 445.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.2023, allocations: 102.1 kB / 445.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2023, allocations: 4.062 kB / 445.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.2023, allocations: 34.56 kB / 445.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.092e-06/0.2023, allocations: 0 / 445.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002227/0.2045, allocations: 0.956 MB / 446.7 MB, free: 35.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/0.2046, allocations: 102.8 kB / 446.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002861/0.2049, allocations: 264.1 kB / 447 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.2049, allocations: 35.5 kB / 447 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.785e-05/0.205, allocations: 158.3 kB / 447.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.205, allocations: 63.39 kB / 447.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.205, allocations: 30.88 kB / 447.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.644e-05/0.2051, allocations: 331.7 kB / 447.6 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.2052, allocations: 99.36 kB / 447.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001711/0.2054, allocations: 141.3 kB / 447.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.2057, allocations: 221.8 kB / 448.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2057, allocations: 0 / 448.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000393/0.2061, allocations: 288.1 kB / 448.3 MB, free: 34.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.2062, allocations: 112.7 kB / 448.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.2062, allocations: 3.188 kB / 448.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.2062, allocations: 2.812 kB / 448.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.2065, allocations: 68.14 kB / 448.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.2065, allocations: 6.484 kB / 448.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.2067, allocations: 45.38 kB / 448.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.2067, allocations: 12.55 kB / 448.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.619e-06/0.2067, allocations: 2.875 kB / 448.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002044/0.2069, allocations: 169.7 kB / 448.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-06/0.2069, allocations: 0 / 448.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-06/0.2069, allocations: 2.562 kB / 448.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.2072, allocations: 53.7 kB / 448.8 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.295e-06/0.2072, allocations: 3.234 kB / 448.8 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.2073, allocations: 38.09 kB / 448.9 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.2074, allocations: 9.312 kB / 448.9 MB, free: 33.98 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.78e-05/0.2074, allocations: 212.2 kB / 449.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.2075, allocations: 30.28 kB / 449.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008402/0.2083, allocations: 459.8 kB / 449.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.2083, allocations: 2.625 kB / 449.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2084, allocations: 3.938 kB / 449.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2084, allocations: 0 / 449.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.2086, allocations: 330.8 kB / 449.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2086, allocations: 0 / 449.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.217e-05/0.2087, allocations: 16.66 kB / 449.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004069/0.2091, allocations: 161.2 kB / 450.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.2091, allocations: 10.48 kB / 450.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/0.2114, allocations: 2.314 MB / 452.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.2114, allocations: 192 / 452.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009521/0.2124, allocations: 0.6368 MB / 453 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.2124, allocations: 107.5 kB / 453.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.2125, allocations: 3.156 kB / 453.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.2127, allocations: 37.91 kB / 453.2 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.2127, allocations: 16.95 kB / 453.2 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.2127, allocations: 5.25 kB / 453.2 MB, free: 31.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.213, allocations: 198.5 kB / 453.4 MB, free: 31.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.213, allocations: 0 / 453.4 MB, free: 31.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003546/0.2133, allocations: 89.38 kB / 453.5 MB, free: 31.05 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.001083/0.2144, allocations: 1.183 MB / 454.6 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000463/0.2149, allocations: 317 kB / 455 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2149, allocations: 0 / 455 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004098/0.2153, allocations: 293.3 kB / 455.2 MB, free: 29.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.2157, allocations: 46.02 kB / 455.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.2187, allocations: 2.883 MB / 458.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.2188, allocations: 0.7631 MB / 458.9 MB, free: 27.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.2189, allocations: 44.28 kB / 459 MB, free: 27.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.155e-05/0.219, allocations: 75.92 kB / 459.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.219, allocations: 7.938 kB / 459.1 MB, free: 27.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01514/0.2342, allocations: 5.673 MB / 464.7 MB, free: 26.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000107/0.2343, allocations: 235.1 kB / 465 MB, free: 26.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.533/1.768, allocations: 1.828 kB / 465 MB, free: 26.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)