Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") [/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.08889/0.08889, allocations: 21.61 MB / 37.41 MB, free: 0.7461 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009459/0.0009461, allocations: 188.4 kB / 43.63 MB, free: 3.562 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.1 MB / 254.8 MB, free: 14.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009008/0.0009009, allocations: 108.4 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 53.41 kB / 372.3 MB, free: 59.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07698/0.07814, allocations: 51.98 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001966/0.08014, allocations: 1.068 MB / 425.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.08126, allocations: 1.249 MB / 426.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.624e-05/0.08136, allocations: 3.938 kB / 426.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.08169, allocations: 35.78 kB / 426.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.08182, allocations: 35.83 kB / 426.7 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.08198, allocations: 79.89 kB / 426.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000198/0.08219, allocations: 207.6 kB / 427 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.215e-05/0.08229, allocations: 33.48 kB / 427 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.17e-05/0.08238, allocations: 75.67 kB / 427.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.08251, allocations: 91.59 kB / 427.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.08255, allocations: 4 kB / 427.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.978e-05/0.08257, allocations: 12 kB / 427.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.305e-05/0.08264, allocations: 39.83 kB / 427.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.68e-05/0.0827, allocations: 51.66 kB / 427.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.08282, allocations: 119.5 kB / 427.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.08283, allocations: 4 kB / 427.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.08284, allocations: 0 / 427.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.407e-06/0.08285, allocations: 0 / 427.4 MB, free: 11.39 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008932/0.08375, allocations: 0.5065 MB / 427.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.08379, allocations: 8.031 kB / 427.9 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.046e-05/0.08383, allocations: 16.75 kB / 427.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.0843, allocations: 300.5 kB / 428.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.08433, allocations: 8.375 kB / 428.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.08436, allocations: 12.38 kB / 428.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.08456, allocations: 123 kB / 428.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.08457, allocations: 0 / 428.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.08459, allocations: 8 kB / 428.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.0846, allocations: 4 kB / 428.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.08477, allocations: 83.94 kB / 428.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005813/0.08536, allocations: 0.5866 MB / 429 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.08567, allocations: 138.4 kB / 429.2 MB, free: 9.449 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.675e-05/0.08576, allocations: 48.83 kB / 429.2 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.08578, allocations: 4 kB / 429.2 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.519e-05/0.0858, allocations: 34.56 kB / 429.3 MB, free: 9.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.0858, allocations: 0 / 429.3 MB, free: 9.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003036/0.08611, allocations: 165.8 kB / 429.4 MB, free: 9.184 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.08614, allocations: 55.41 kB / 429.5 MB, free: 9.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.08653, allocations: 254 kB / 429.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.08655, allocations: 33.64 kB / 429.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.08661, allocations: 124.1 kB / 429.9 MB, free: 8.695 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.08664, allocations: 39.45 kB / 429.9 MB, free: 8.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.973e-05/0.08669, allocations: 29.72 kB / 430 MB, free: 8.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.214e-05/0.08674, allocations: 326.8 kB / 430.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.132e-05/0.08682, allocations: 39.98 kB / 430.3 MB, free: 8.254 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.256e-05/0.0869, allocations: 70.41 kB / 430.4 MB, free: 8.176 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006519/0.08756, allocations: 245.8 kB / 430.6 MB, free: 7.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.08757, allocations: 7.938 kB / 430.6 MB, free: 7.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002208/0.08782, allocations: 165.4 kB / 430.8 MB, free: 7.754 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.08784, allocations: 4 kB / 430.8 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.08785, allocations: 0 / 430.8 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.08787, allocations: 7.938 kB / 430.8 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.08798, allocations: 19.98 kB / 430.8 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.088, allocations: 4 kB / 430.8 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.08818, allocations: 39.81 kB / 430.9 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.0882, allocations: 4 kB / 430.9 MB, free: 7.676 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001346/0.08834, allocations: 137.8 kB / 431 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.08838, allocations: 15.81 kB / 431 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.32e-05/0.08843, allocations: 21.41 kB / 431 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.08844, allocations: 3.984 kB / 431 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.08845, allocations: 7.984 kB / 431 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.08846, allocations: 3.938 kB / 431.1 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.08865, allocations: 229.6 kB / 431.3 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.08866, allocations: 0 / 431.3 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.08878, allocations: 12 kB / 431.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.08879, allocations: 4 kB / 431.3 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.0888, allocations: 4 kB / 431.3 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.08881, allocations: 0 / 431.3 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.08882, allocations: 3.984 kB / 431.3 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.09052, allocations: 1.773 MB / 433.1 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.09057, allocations: 88.92 kB / 433.2 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.09059, allocations: 11.94 kB / 433.2 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.09079, allocations: 24 kB / 433.2 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.09083, allocations: 4 kB / 433.2 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.09084, allocations: 3.984 kB / 433.2 MB, free: 5.121 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003099/0.09116, allocations: 195.2 kB / 433.4 MB, free: 4.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.09117, allocations: 0 / 433.4 MB, free: 4.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002995/0.09147, allocations: 32 kB / 433.4 MB, free: 4.898 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 7.256e-05/0.09155, allocations: 103.2 kB / 433.5 MB, free: 4.789 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002122/0.09177, allocations: 107.9 kB / 433.6 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.09178, allocations: 0 / 433.6 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.141e-05/0.09186, allocations: 51.91 kB / 433.7 MB, free: 4.633 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.09216, allocations: 23.98 kB / 433.7 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005503/0.09272, allocations: 0.5129 MB / 434.2 MB, free: 4.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.09286, allocations: 0.7322 MB / 435 MB, free: 3.297 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.016e-05/0.09295, allocations: 25.06 kB / 435 MB, free: 3.273 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.86e-05/0.09301, allocations: 15.44 kB / 435 MB, free: 3.258 MB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.09301, allocations: 0 / 435 MB, free: 3.258 MB / 298.7 MB Notification: Performance of Templates: time 0.003493/0.09651, allocations: 1.635 MB / 436.6 MB, free: 1.625 MB / 298.7 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)