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.0009663/0.0009663, allocations: 99.19 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.001085/0.001085, allocations: 185.3 kB / 16.92 MB, free: 6.688 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.292/1.292, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1954/0.1954, allocations: 22.34 MB / 314.4 MB, free: 13.03 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003055/0.0003056, allocations: 8 kB / 383.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2453, allocations: 55.97 MB / 439.9 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.001598/0.2469, allocations: 1.751 MB / 441.7 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007939/0.2478, allocations: 0.6621 MB / 442.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.909e-05/0.2479, allocations: 9.688 kB / 442.3 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002246/0.2481, allocations: 23.78 kB / 442.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.2483, allocations: 43.36 kB / 442.4 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.2486, allocations: 164.8 kB / 442.6 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.2488, allocations: 309.2 kB / 442.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.249, allocations: 97.39 kB / 443 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.674e-05/0.2491, allocations: 93.02 kB / 443 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.2492, allocations: 101.9 kB / 443.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.2493, allocations: 12.11 kB / 443.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.6e-05/0.2493, allocations: 10.19 kB / 443.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.295e-05/0.2494, allocations: 51.2 kB / 443.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.091e-05/0.2494, allocations: 127.1 kB / 443.3 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.2496, allocations: 214.9 kB / 443.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2496, allocations: 4 kB / 443.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2496, allocations: 0 / 443.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.2496, allocations: 0 / 443.6 MB, free: 37.45 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.0009086/0.2505, allocations: 0.5739 MB / 444.1 MB, free: 37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.2506, allocations: 15.31 kB / 444.1 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.337e-05/0.2506, allocations: 31 kB / 444.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.251, allocations: 318.4 kB / 444.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.2511, allocations: 17.34 kB / 444.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.12e-05/0.2511, allocations: 21.34 kB / 444.5 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.2515, allocations: 264.7 kB / 444.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2515, allocations: 7.734 kB / 444.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.2516, allocations: 4 kB / 444.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2516, allocations: 3.875 kB / 444.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000389/0.252, allocations: 209 kB / 445 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009899/0.253, allocations: 0.7262 MB / 445.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006875/0.2537, allocations: 263.8 kB / 446 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.2539, allocations: 114.3 kB / 446.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.2539, allocations: 3.094 kB / 446.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.2539, allocations: 30.88 kB / 446.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.2539, allocations: 0 / 446.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002546/0.2565, allocations: 0.9556 MB / 447.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.2565, allocations: 105.3 kB / 447.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.2569, allocations: 266.4 kB / 447.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.2569, allocations: 28.66 kB / 447.5 MB, free: 35.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.257, allocations: 163.8 kB / 447.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.769e-05/0.257, allocations: 61.86 kB / 447.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.257, allocations: 29.06 kB / 447.7 MB, free: 35.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.36e-05/0.2571, allocations: 330.9 kB / 448.1 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.2573, allocations: 103.3 kB / 448.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.2575, allocations: 143.7 kB / 448.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.2579, allocations: 218.8 kB / 448.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2579, allocations: 4 kB / 448.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000456/0.2583, allocations: 280.9 kB / 448.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.2584, allocations: 113.3 kB / 448.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.2584, allocations: 0 / 448.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.2584, allocations: 2.219 kB / 448.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/0.2587, allocations: 62.41 kB / 449 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.2587, allocations: 7.219 kB / 449 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.259, allocations: 42.25 kB / 449 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.259, allocations: 4.75 kB / 449 MB, free: 34.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.259, allocations: 9.906 kB / 449 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002362/0.2592, allocations: 178.2 kB / 449.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-06/0.2593, allocations: 0 / 449.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.647e-06/0.2593, allocations: 6.719 kB / 449.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.2595, allocations: 51.81 kB / 449.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.2595, allocations: 2.906 kB / 449.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.2597, allocations: 32.02 kB / 449.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.2597, allocations: 10.97 kB / 449.3 MB, free: 34.21 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 0.0001007/0.2598, allocations: 222.1 kB / 449.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/0.2599, allocations: 22.75 kB / 449.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009892/0.2609, allocations: 456.4 kB / 450 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2609, allocations: 3.938 kB / 450 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2609, allocations: 2.812 kB / 450 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2609, allocations: 7.359 kB / 450 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.2612, allocations: 328 kB / 450.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2612, allocations: 0 / 450.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2613, allocations: 22.5 kB / 450.3 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004791/0.2618, allocations: 154.5 kB / 450.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.2618, allocations: 4 kB / 450.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002665/0.2645, allocations: 2.328 MB / 452.8 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2645, allocations: 0 / 452.8 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.2656, allocations: 0.6355 MB / 453.5 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.2657, allocations: 97.73 kB / 453.6 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/0.2657, allocations: 10.62 kB / 453.6 MB, free: 31.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.266, allocations: 36.77 kB / 453.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.266, allocations: 19.48 kB / 453.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.266, allocations: 6.625 kB / 453.6 MB, free: 31.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002711/0.2663, allocations: 200.2 kB / 453.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2663, allocations: 0 / 453.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004255/0.2668, allocations: 91.56 kB / 453.9 MB, free: 31.27 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 8.581e-05/0.2668, allocations: 101.1 kB / 454 MB, free: 31.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005409/0.2674, allocations: 319 kB / 454.3 MB, free: 31.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2674, allocations: 0 / 454.3 MB, free: 31.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004783/0.2679, allocations: 296.2 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.0003821/0.2683, allocations: 40.95 kB / 454.6 MB, free: 30.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008615/0.2692, allocations: 0.6712 MB / 455.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.2693, allocations: 0.7642 MB / 456.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.731e-05/0.2694, allocations: 20 kB / 456.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2694, allocations: 0 / 456.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of Templates: time 0.004712/0.2741, 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)