Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") translateModel(AES.Coursework.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09481/0.09481, allocations: 21.61 MB / 36.56 MB, free: 1.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009309/0.0009309, allocations: 187.3 kB / 42.82 MB, free: 3.789 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 223.2 MB / 272.1 MB, free: 1.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008313/0.0008311, allocations: 98.88 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003245, allocations: 12 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07832/0.07867, allocations: 55.82 MB / 452.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.269/0.3477, allocations: 82.33 MB / 0.5226 GB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.3479, allocations: 80.78 kB / 0.5227 GB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01827/0.3662, allocations: 8.278 MB / 0.5308 GB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3662, allocations: 0 / 0.5308 GB, free: 10.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.995e-05/0.3663, allocations: 17.94 kB / 0.5308 GB, free: 10.57 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0009898/0.3673, allocations: 0.7634 MB / 0.5316 GB, free: 9.957 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.3673, allocations: 7.594 kB / 0.5316 GB, free: 9.957 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.3674, allocations: 62.16 kB / 0.5316 GB, free: 9.926 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.3679, allocations: 414.8 kB / 0.532 GB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.368, allocations: 27.94 kB / 0.5321 GB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.368, allocations: 34.66 kB / 0.5321 GB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/0.3686, allocations: 424.5 kB / 0.5325 GB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3686, allocations: 4 kB / 0.5325 GB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.3686, allocations: 14.66 kB / 0.5325 GB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.403e-06/0.3687, allocations: 7.844 kB / 0.5325 GB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005074/0.3692, allocations: 298.6 kB / 0.5328 GB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.3706, allocations: 1.546 MB / 0.5343 GB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006539/0.3713, allocations: 375.5 kB / 0.5347 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.3713, allocations: 4.203 kB / 0.5347 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.3713, allocations: 42.61 kB / 0.5347 GB, free: 8.184 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.874e-06/0.3714, allocations: 0 / 0.5347 GB, free: 8.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007246/0.3721, allocations: 435.2 kB / 0.5351 GB, free: 8.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.3721, allocations: 110.4 kB / 0.5352 GB, free: 7.953 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3724, allocations: 363.3 kB / 0.5356 GB, free: 7.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.3724, allocations: 29.23 kB / 0.5356 GB, free: 7.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.3725, allocations: 253.7 kB / 0.5359 GB, free: 7.625 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/0.3726, allocations: 102.5 kB / 0.536 GB, free: 7.551 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.327e-05/0.3726, allocations: 7.719 kB / 0.536 GB, free: 7.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.062e-05/0.3727, allocations: 354.8 kB / 0.5363 GB, free: 7.223 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.3729, allocations: 127.3 kB / 0.5364 GB, free: 7.195 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.3732, allocations: 205.6 kB / 0.5366 GB, free: 7.078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.3734, allocations: 138 kB / 0.5367 GB, free: 7.059 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3734, allocations: 0 / 0.5367 GB, free: 7.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005329/0.3739, allocations: 394.1 kB / 0.5371 GB, free: 6.957 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.3741, allocations: 0.7061 MB / 0.5378 GB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3741, allocations: 0 / 0.5378 GB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.3741, allocations: 3.844 kB / 0.5378 GB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.3744, allocations: 76.77 kB / 0.5379 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.3744, allocations: 3.938 kB / 0.5379 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.3746, allocations: 46.45 kB / 0.5379 GB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.3746, allocations: 11 kB / 0.5379 GB, free: 6.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.28e-06/0.3746, allocations: 7.781 kB / 0.538 GB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003362/0.375, allocations: 267.3 kB / 0.5382 GB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/0.375, allocations: 224 / 0.5382 GB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.486e-06/0.375, allocations: 7.625 kB / 0.5382 GB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.3752, allocations: 68.53 kB / 0.5383 GB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3752, allocations: 7.953 kB / 0.5383 GB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.3754, allocations: 26.72 kB / 0.5383 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.3754, allocations: 10.91 kB / 0.5383 GB, free: 6.105 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: T.y:VARIABLE(start = T.y_start fixed = true ) "Connector of Real output signal" type: Real F.y:VARIABLE(start = F.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002132/0.3756, allocations: 241.1 kB / 0.5386 GB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.615e-05/0.3757, allocations: 46.88 kB / 0.5386 GB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.844e-05/0.3758, allocations: 60.58 kB / 0.5387 GB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3758, allocations: 7.766 kB / 0.5387 GB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3758, allocations: 0 / 0.5387 GB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3758, allocations: 3.984 kB / 0.5387 GB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.3762, allocations: 461.2 kB / 0.5391 GB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3762, allocations: 0 / 0.5391 GB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.3765, allocations: 61.12 kB / 0.5392 GB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3765, allocations: 3.906 kB / 0.5392 GB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3765, allocations: 7.375 kB / 0.5392 GB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3765, allocations: 0 / 0.5392 GB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3765, allocations: 7.938 kB / 0.5392 GB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000725/0.3772, allocations: 0.5751 MB / 0.5397 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.3774, allocations: 149.2 kB / 0.5399 GB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.3774, allocations: 6.75 kB / 0.5399 GB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.3776, allocations: 23.45 kB / 0.5399 GB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.3777, allocations: 23.5 kB / 0.5399 GB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.3777, allocations: 11.78 kB / 0.54 GB, free: 5.184 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001978/0.3779, allocations: 280.3 kB / 0.5402 GB, free: 5.066 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3779, allocations: 0 / 0.5402 GB, free: 5.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004027/0.3783, allocations: 154.4 kB / 0.5404 GB, free: 5.035 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.344e-05/0.3784, allocations: 109.6 kB / 0.5405 GB, free: 4.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006365/0.3791, allocations: 430 kB / 0.5409 GB, free: 4.875 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3791, allocations: 0 / 0.5409 GB, free: 4.875 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.3793, allocations: 146.5 kB / 0.541 GB, free: 4.852 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.3798, allocations: 112.6 kB / 0.5411 GB, free: 4.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3808, allocations: 0.949 MB / 0.5421 GB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000179/0.381, allocations: 0.847 MB / 0.5429 GB, free: 3.453 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001852/0.3812, allocations: 46.48 kB / 0.5429 GB, free: 3.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.3813, allocations: 30.66 kB / 0.543 GB, free: 3.418 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3813, allocations: 0 / 0.543 GB, free: 3.418 MB / 362.7 MB Notification: Performance of Templates: time 0.005925/0.3872, allocations: 4.056 MB / 0.5469 GB, free: 1.473 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.makefile (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & ./AES_AES.Coursework.ElecSys_generator_models.TurbineFollows -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)