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: translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009406/0.0009407, allocations: 98.88 kB / 16.02 MB, free: 76 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.000966/0.000966, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.26/1.26, allocations: 223.3 MB / 241 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.1878/0.1878, allocations: 22.34 MB / 314.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002672, allocations: 8 kB / 384 MB, free: 9.473 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2048, allocations: 55.97 MB / 439.9 MB, free: 39.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.00147/0.2063, allocations: 1.757 MB / 441.7 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007542/0.2071, allocations: 0.6645 MB / 442.3 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.853e-05/0.2072, allocations: 9 kB / 442.3 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.2074, allocations: 24.41 kB / 442.4 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.2076, allocations: 44.16 kB / 442.4 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.2078, allocations: 161.1 kB / 442.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.2081, allocations: 301.1 kB / 442.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.2082, allocations: 105 kB / 443 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.084e-05/0.2083, allocations: 89.38 kB / 443.1 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.2085, allocations: 107.4 kB / 443.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.2085, allocations: 9.5 kB / 443.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.526e-05/0.2085, allocations: 6.188 kB / 443.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.619e-05/0.2086, allocations: 56.77 kB / 443.2 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.767e-05/0.2087, allocations: 131.8 kB / 443.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.2088, allocations: 207 kB / 443.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2088, allocations: 0 / 443.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2088, allocations: 0 / 443.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.2088, allocations: 0 / 443.6 MB, free: 37.44 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.0008981/0.2097, allocations: 0.5737 MB / 444.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.642e-05/0.2098, allocations: 17.88 kB / 444.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.444e-05/0.2098, allocations: 34.62 kB / 444.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.2102, allocations: 312.7 kB / 444.5 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.2103, allocations: 12.44 kB / 444.5 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.2103, allocations: 27.56 kB / 444.5 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.2107, allocations: 263.4 kB / 444.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2107, allocations: 0 / 444.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.2107, allocations: 6.812 kB / 444.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2108, allocations: 2.844 kB / 444.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.2111, allocations: 208.7 kB / 445 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009507/0.2121, allocations: 0.7207 MB / 445.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006853/0.2128, allocations: 270.6 kB / 446 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.213, allocations: 114.4 kB / 446.1 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.213, allocations: 3.594 kB / 446.1 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.525e-05/0.2131, allocations: 38.88 kB / 446.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.402e-06/0.2131, allocations: 0 / 446.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002574/0.2156, allocations: 0.9534 MB / 447.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/0.2157, allocations: 105.4 kB / 447.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.216, allocations: 265.9 kB / 447.5 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.2161, allocations: 29.7 kB / 447.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/0.2161, allocations: 160.7 kB / 447.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/0.2162, allocations: 70.75 kB / 447.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.229e-05/0.2162, allocations: 23.56 kB / 447.7 MB, free: 35.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.973e-05/0.2162, allocations: 337 kB / 448.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.2164, allocations: 95.25 kB / 448.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.2167, allocations: 150 kB / 448.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.217, allocations: 220.9 kB / 448.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.217, allocations: 0 / 448.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004592/0.2175, allocations: 286.8 kB / 448.8 MB, free: 34.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.2175, allocations: 110.3 kB / 448.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.2176, allocations: 0 / 448.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.2176, allocations: 3 kB / 448.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.2179, allocations: 64.59 kB / 449 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.2179, allocations: 3.094 kB / 449 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.2181, allocations: 44.31 kB / 449 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.2182, allocations: 5.75 kB / 449 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-06/0.2182, allocations: 2.875 kB / 449 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002364/0.2184, allocations: 177.3 kB / 449.2 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-06/0.2184, allocations: 6.047 kB / 449.2 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-06/0.2184, allocations: 0 / 449.2 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.2187, allocations: 51.78 kB / 449.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-06/0.2187, allocations: 2.969 kB / 449.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.2189, allocations: 33.3 kB / 449.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.2189, allocations: 7.688 kB / 449.3 MB, free: 34.2 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 9.54e-05/0.219, allocations: 224.5 kB / 449.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.532e-05/0.219, allocations: 23.09 kB / 449.5 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009749/0.22, allocations: 451.8 kB / 450 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.22, allocations: 6.188 kB / 450 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.22, allocations: 3.938 kB / 450 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.2201, allocations: 7.938 kB / 450 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.2203, allocations: 334 kB / 450.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2203, allocations: 0 / 450.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.2204, allocations: 16.12 kB / 450.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004545/0.2209, allocations: 153.5 kB / 450.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.2209, allocations: 3 kB / 450.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002622/0.2236, allocations: 2.325 MB / 452.8 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2236, allocations: 4.062 kB / 452.8 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.2247, allocations: 0.6369 MB / 453.5 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.611e-05/0.2247, allocations: 101 kB / 453.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.2248, allocations: 4 kB / 453.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.225, allocations: 32.52 kB / 453.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/0.2251, allocations: 19.91 kB / 453.6 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.2251, allocations: 13.8 kB / 453.6 MB, free: 31.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002685/0.2254, allocations: 196.7 kB / 453.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2254, allocations: 0 / 453.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004125/0.2258, allocations: 87.69 kB / 453.9 MB, free: 31.26 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 6.793e-05/0.2259, allocations: 100.9 kB / 454 MB, free: 31.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005427/0.2264, allocations: 321.4 kB / 454.3 MB, free: 31.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2264, allocations: 0 / 454.3 MB, free: 31.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004624/0.2269, allocations: 289 kB / 454.6 MB, free: 30.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.2273, allocations: 52.94 kB / 454.7 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008721/0.2282, allocations: 0.6756 MB / 455.3 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.2283, allocations: 0.7556 MB / 456.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.39e-05/0.2284, allocations: 22 kB / 456.1 MB, free: 29.76 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2284, allocations: 0 / 456.1 MB, free: 29.76 MB / 350.1 MB Notification: Performance of Templates: time 0.004534/0.2329, allocations: 3.459 MB / 459.6 MB, free: 29.5 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)