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: translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001406, allocations: 106.4 kB / 16.37 MB, free: 6.438 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.001688/0.001688, allocations: 189.1 kB / 17.3 MB, free: 5.781 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08795/0.08794, allocations: 22.32 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 66.7 kB / 382.9 MB, free: 40.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09005/0.09133, allocations: 54.96 MB / 437.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002902/0.09426, allocations: 1.824 MB / 439.7 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009934/0.09528, allocations: 0.6001 MB / 440.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.773e-05/0.09538, allocations: 7.938 kB / 440.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.09563, allocations: 19.8 kB / 440.4 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.0958, allocations: 39.72 kB / 440.4 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.09606, allocations: 115.7 kB / 440.5 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.0963, allocations: 219.6 kB / 440.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.09643, allocations: 57.53 kB / 440.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.74e-05/0.09653, allocations: 75.75 kB / 440.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.09668, allocations: 103.5 kB / 441 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.09673, allocations: 20 kB / 441 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.668e-05/0.09676, allocations: 16 kB / 441 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.09684, allocations: 51.83 kB / 441 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.956e-05/0.09692, allocations: 79.58 kB / 441.1 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.09709, allocations: 183.2 kB / 441.3 MB, free: 8.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.09711, allocations: 4 kB / 441.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09711, allocations: 4 kB / 441.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.09712, allocations: 0 / 441.3 MB, free: 8.227 MB / 318.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.000894/0.09802, allocations: 0.5168 MB / 441.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.09806, allocations: 12.03 kB / 441.8 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.774e-05/0.09811, allocations: 16.75 kB / 441.8 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.09855, allocations: 284.5 kB / 442.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.09857, allocations: 8.609 kB / 442.1 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.09861, allocations: 12.38 kB / 442.1 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.09889, allocations: 177.7 kB / 442.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.09891, allocations: 0 / 442.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.09893, allocations: 4 kB / 442.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.09894, allocations: 4 kB / 442.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/0.09919, allocations: 116.6 kB / 442.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008307/0.1, allocations: 0.5322 MB / 443 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000501/0.1005, allocations: 190.5 kB / 443.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.1007, allocations: 68.83 kB / 443.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.1007, allocations: 0 / 443.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.1007, allocations: 38.55 kB / 443.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.1007, allocations: 0 / 443.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.001476/0.1022, allocations: 0.5265 MB / 443.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1023, allocations: 85.09 kB / 443.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.1026, allocations: 215.2 kB / 444.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.1027, allocations: 29.64 kB / 444.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.252e-05/0.1027, allocations: 127.9 kB / 444.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.061e-05/0.1028, allocations: 47.34 kB / 444.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.842e-05/0.1029, allocations: 33.7 kB / 444.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.103, allocations: 330.8 kB / 444.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.1031, allocations: 72.81 kB / 444.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.1033, allocations: 86.47 kB / 444.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002455/0.1035, allocations: 144.3 kB / 444.9 MB, free: 4.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1035, allocations: 0 / 444.9 MB, free: 4.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003313/0.1039, allocations: 193.4 kB / 445.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.1039, allocations: 4 kB / 445.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1039, allocations: 0 / 445.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1039, allocations: 4 kB / 445.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.1042, allocations: 39.97 kB / 445.2 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1042, allocations: 0 / 445.2 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.1044, allocations: 31.81 kB / 445.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.1044, allocations: 15.97 kB / 445.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001419/0.1046, allocations: 144.1 kB / 445.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.52e-05/0.1047, allocations: 74.53 kB / 445.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001697/0.1048, allocations: 128.5 kB / 445.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.41e-07/0.1049, allocations: 0 / 445.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002387/0.1051, allocations: 165.3 kB / 445.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/0.1051, allocations: 8 kB / 445.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-06/0.1051, allocations: 4.062 kB / 445.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-06/0.1051, allocations: 0 / 445.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.1053, allocations: 39.98 kB / 445.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-06/0.1054, allocations: 0 / 445.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.1055, allocations: 23.91 kB / 445.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.1055, allocations: 4 kB / 445.8 MB, free: 3.434 MB / 318.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 0.0001035/0.1056, allocations: 196.9 kB / 446 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.1057, allocations: 19.81 kB / 446 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006505/0.1064, allocations: 282.8 kB / 446.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1064, allocations: 0 / 446.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1064, allocations: 4 kB / 446.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1064, allocations: 0 / 446.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002914/0.1067, allocations: 269.4 kB / 446.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1067, allocations: 3.938 kB / 446.6 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.726e-05/0.1068, allocations: 12 kB / 446.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003182/0.1071, allocations: 84.78 kB / 446.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.1071, allocations: 4 kB / 446.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.1091, allocations: 1.836 MB / 448.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1091, allocations: 0 / 448.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007327/0.1098, allocations: 443.9 kB / 448.9 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.045e-05/0.1099, allocations: 104.9 kB / 449 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.11, allocations: 4 kB / 449 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.1102, allocations: 23.97 kB / 449.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.1102, allocations: 11.92 kB / 449.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.1103, allocations: 4 kB / 449.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.1106, allocations: 173.1 kB / 449.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1106, allocations: 0 / 449.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003477/0.1109, allocations: 63.84 kB / 449.3 MB, free: 15.69 MB / 334.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.0001081/0.111, allocations: 95.25 kB / 449.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004111/0.1114, allocations: 215.1 kB / 449.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1115, allocations: 4 kB / 449.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000337/0.1118, allocations: 214.7 kB / 449.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.1121, allocations: 30.11 kB / 449.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006827/0.1128, allocations: 381.5 kB / 450.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.1131, allocations: 0.7436 MB / 451 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.1132, allocations: 33.05 kB / 451 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.1133, allocations: 15.44 kB / 451 MB, free: 13.9 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1133, allocations: 0 / 451 MB, free: 13.9 MB / 334.1 MB Notification: Performance of Templates: time 0.005235/0.1185, allocations: 2.455 MB / 453.5 MB, free: 11.46 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.Keep_below_limit -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)