Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 104.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.5 MB / 252.8 MB, free: 9.125 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_control_problems/Keep_limits_and_overrides/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: Keep_within_two_limits Keep_below_limit Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1033/0.1033, allocations: 23.82 MB / 332.7 MB, free: 12.88 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002427/0.002427, allocations: 69.72 kB / 465.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3781, allocations: 59.49 MB / 0.513 GB, free: 8.926 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002264/0.3804, allocations: 1.49 MB / 0.5144 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006433/0.381, allocations: 462.7 kB / 0.5149 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.103e-05/0.381, allocations: 0 / 0.5149 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.5e-05/0.3811, allocations: 11.22 kB / 0.5149 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.3813, allocations: 19.55 kB / 0.5149 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.495e-05/0.3813, allocations: 13.64 kB / 0.5149 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.279e-05/0.3814, allocations: 73.42 kB / 0.515 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.067e-05/0.3814, allocations: 4.484 kB / 0.515 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.3816, allocations: 43.25 kB / 0.515 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.28e-05/0.3817, allocations: 40.52 kB / 0.515 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.3817, allocations: 3.875 kB / 0.5151 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.377e-05/0.3817, allocations: 2.688 kB / 0.5151 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.858e-05/0.3817, allocations: 13.48 kB / 0.5151 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/0.3818, allocations: 31.84 kB / 0.5151 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.593e-05/0.3819, allocations: 48.5 kB / 0.5151 GB, free: 7.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3819, allocations: 0 / 0.5151 GB, free: 7.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3819, allocations: 0.7188 kB / 0.5151 GB, free: 7.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.3819, allocations: 0 / 0.5151 GB, free: 7.82 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000432/0.3823, allocations: 382.9 kB / 0.5155 GB, free: 7.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.3823, allocations: 14.31 kB / 0.5155 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.3824, allocations: 8.828 kB / 0.5155 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.3825, allocations: 187.5 kB / 0.5157 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3825, allocations: 2.812 kB / 0.5157 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.3825, allocations: 8.156 kB / 0.5157 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.3826, allocations: 61.22 kB / 0.5158 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.3826, allocations: 0 / 0.5158 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.507e-06/0.3827, allocations: 1.312 kB / 0.5158 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3827, allocations: 1.719 kB / 0.5158 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.229e-05/0.3827, allocations: 29.72 kB / 0.5158 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004092/0.3831, allocations: 321.2 kB / 0.5161 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.3834, allocations: 77.34 kB / 0.5162 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.561e-05/0.3834, allocations: 31.34 kB / 0.5162 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.3834, allocations: 1.312 kB / 0.5162 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.3835, allocations: 41.12 kB / 0.5163 GB, free: 6.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.3835, allocations: 0 / 0.5163 GB, free: 6.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006172/0.3841, allocations: 393.8 kB / 0.5166 GB, free: 6.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.84e-05/0.3841, allocations: 52.47 kB / 0.5167 GB, free: 6.371 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.061e-05/0.3842, allocations: 129.8 kB / 0.5168 GB, free: 6.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.3842, allocations: 31.77 kB / 0.5168 GB, free: 6.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.073e-05/0.3842, allocations: 92.02 kB / 0.5169 GB, free: 6.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.3842, allocations: 43.31 kB / 0.517 GB, free: 6.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.3843, allocations: 29.73 kB / 0.517 GB, free: 6.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.214e-05/0.3843, allocations: 319.4 kB / 0.5173 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.197e-05/0.3844, allocations: 27.02 kB / 0.5173 GB, free: 5.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.063e-05/0.3844, allocations: 48.39 kB / 0.5174 GB, free: 5.715 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.3848, allocations: 226.9 kB / 0.5176 GB, free: 5.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3848, allocations: 4.938 kB / 0.5176 GB, free: 5.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002153/0.385, allocations: 132.9 kB / 0.5177 GB, free: 5.473 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.385, allocations: 5.25 kB / 0.5177 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.385, allocations: 1.25 kB / 0.5177 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001412/0.3852, allocations: 30.81 kB / 0.5178 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.045e-05/0.3853, allocations: 25.88 kB / 0.5178 GB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009441/0.3862, allocations: 1.574 MB / 0.5193 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.968e-05/0.3863, allocations: 6.281 kB / 0.5193 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.3863, allocations: 4.5 kB / 0.5193 GB, free: 3.879 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: Pm = Pcmd. 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 (12): * Single equations (assignments): 11 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 7.946e-05/0.3864, allocations: 122.4 kB / 0.5194 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.3864, allocations: 14.7 kB / 0.5195 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.23e-05/0.3864, allocations: 19.52 kB / 0.5195 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.3864, allocations: 1.188 kB / 0.5195 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.3864, allocations: 4.047 kB / 0.5195 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3864, allocations: 5.906 kB / 0.5195 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003552/0.3868, allocations: 380.2 kB / 0.5199 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3868, allocations: 0 / 0.5199 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.235e-05/0.3869, allocations: 15.33 kB / 0.5199 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001162/0.387, allocations: 40.22 kB / 0.5199 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.387, allocations: 2.203 kB / 0.5199 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007358/0.3877, allocations: 1.585 MB / 0.5215 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3877, allocations: 9.828 kB / 0.5215 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002268/0.388, allocations: 236.6 kB / 0.5217 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.396e-05/0.388, allocations: 87.92 kB / 0.5218 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.388, allocations: 3.328 kB / 0.5218 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.645e-05/0.3881, allocations: 0 / 0.5218 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.336e-05/0.3881, allocations: 11.61 kB / 0.5218 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.3881, allocations: 3.062 kB / 0.5218 GB, free: 1.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.902e-05/0.3882, allocations: 106.6 kB / 0.5219 GB, free: 1.395 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3882, allocations: 0 / 0.5219 GB, free: 1.395 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.3885, allocations: 28.66 kB / 0.5219 GB, free: 1.387 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,wg) * 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 (7): * Single equations (assignments): 6 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 7.825e-05/0.3886, allocations: 99.66 kB / 0.522 GB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002792/0.3889, allocations: 178.5 kB / 0.5222 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3889, allocations: 0 / 0.5222 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.389, allocations: 147.9 kB / 0.5223 GB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.3892, allocations: 19.97 kB / 0.5223 GB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007184/0.3899, allocations: 423.5 kB / 0.5228 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.3901, allocations: 0.6998 MB / 0.5234 GB, free: 24 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.298e-05/0.3901, allocations: 7.25 kB / 0.5234 GB, free: 24 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.3901, allocations: 19.28 kB / 0.5235 GB, free: 8 kB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3901, allocations: 0 / 0.5235 GB, free: 8 kB / 382.1 MB Notification: Performance of Templates: time 0.004309/0.3944, allocations: 1.18 MB / 0.5246 GB, free: 15.9 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile [Timeout 660] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.848135468550026] Failed to read output from testmodel.py, exit status != 0: 0.4023351836949587 0.41583360599999997 0.031108408 Calling exit ...