Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 186.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1301/0.1301, allocations: 22.7 MB / 325.4 MB, free: 3.543 MB / 254.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.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) Running command: translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 63.89 kB / 457.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1333, allocations: 58.01 MB / 0.5036 GB, free: 7.133 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002846/0.1362, allocations: 1.411 MB / 0.505 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1381, allocations: 1.381 MB / 0.5063 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.1383, allocations: 7.938 kB / 0.5063 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004096/0.1387, allocations: 87.34 kB / 0.5064 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002761/0.1389, allocations: 99.39 kB / 0.5065 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.1393, allocations: 171.7 kB / 0.5067 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004772/0.1398, allocations: 367.7 kB / 0.507 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.1399, allocations: 63.39 kB / 0.5071 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.1401, allocations: 155.4 kB / 0.5072 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/0.1404, allocations: 175.1 kB / 0.5074 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.433e-05/0.1404, allocations: 20 kB / 0.5074 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.779e-05/0.1405, allocations: 20 kB / 0.5074 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.1406, allocations: 79.73 kB / 0.5075 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1407, allocations: 123.1 kB / 0.5076 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003177/0.141, allocations: 262.7 kB / 0.5079 GB, free: 2.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.141, allocations: 0 / 0.5079 GB, free: 2.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.141, allocations: 0 / 0.5079 GB, free: 2.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.141, allocations: 0 / 0.5079 GB, free: 2.719 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001599/0.1426, allocations: 0.7006 MB / 0.5086 GB, free: 1.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1427, allocations: 12.03 kB / 0.5086 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.266e-05/0.1427, allocations: 36.7 kB / 0.5086 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008181/0.1436, allocations: 387.5 kB / 0.509 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.1436, allocations: 8.375 kB / 0.509 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.1436, allocations: 24.38 kB / 0.509 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003706/0.144, allocations: 223.4 kB / 0.5092 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.144, allocations: 0 / 0.5092 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.144, allocations: 8 kB / 0.5092 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.144, allocations: 4 kB / 0.5092 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.1443, allocations: 148.8 kB / 0.5094 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.1455, allocations: 0.9476 MB / 0.5103 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2518/0.3973, allocations: 236.1 kB / 0.5105 GB, free: 16.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3975, allocations: 70.56 kB / 0.5106 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.3975, allocations: 6.391 kB / 0.5106 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.836e-05/0.3975, allocations: 35.62 kB / 0.5106 GB, free: 16.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 2.274e-06/0.3975, allocations: 1.562 kB / 0.5106 GB, free: 16.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006324/0.3982, allocations: 256.9 kB / 0.5109 GB, free: 16.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.3982, allocations: 53.72 kB / 0.5109 GB, free: 16.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007815/0.399, allocations: 375.2 kB / 0.5113 GB, free: 15.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.399, allocations: 30.23 kB / 0.5113 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.3991, allocations: 175.2 kB / 0.5115 GB, free: 15.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.617e-05/0.3991, allocations: 75.17 kB / 0.5115 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.756e-05/0.3992, allocations: 43.22 kB / 0.5116 GB, free: 15.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.655e-05/0.3993, allocations: 348 kB / 0.5119 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.3994, allocations: 62.91 kB / 0.512 GB, free: 15.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.3996, allocations: 100.5 kB / 0.5121 GB, free: 15.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.4006, allocations: 384.4 kB / 0.5124 GB, free: 15.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4006, allocations: 0.7812 kB / 0.5124 GB, free: 15.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003551/0.401, allocations: 253.5 kB / 0.5127 GB, free: 15.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.401, allocations: 9.938 kB / 0.5127 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.401, allocations: 0 / 0.5127 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.401, allocations: 1.094 kB / 0.5127 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.4012, allocations: 49.8 kB / 0.5127 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.4012, allocations: 8.75 kB / 0.5128 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002818/0.4015, allocations: 40.8 kB / 0.5128 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.4015, allocations: 12.69 kB / 0.5128 GB, free: 15.31 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] g1.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: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001294/0.4016, allocations: 150.5 kB / 0.5129 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.4017, allocations: 28.78 kB / 0.513 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.964e-05/0.4017, allocations: 38.44 kB / 0.513 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.4018, allocations: 6.688 kB / 0.513 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4018, allocations: 0 / 0.513 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.4018, allocations: 1.219 kB / 0.513 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.4021, allocations: 328.8 kB / 0.5133 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4021, allocations: 0 / 0.5133 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.4024, allocations: 33.08 kB / 0.5134 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.4024, allocations: 4.953 kB / 0.5134 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.4024, allocations: 7.75 kB / 0.5134 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4024, allocations: 7.094 kB / 0.5134 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4024, allocations: 0 / 0.5134 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005251/0.4029, allocations: 387 kB / 0.5138 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.283e-05/0.403, allocations: 114.9 kB / 0.5139 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/0.403, allocations: 5.438 kB / 0.5139 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003074/0.4033, allocations: 39.81 kB / 0.5139 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.825e-05/0.4034, allocations: 11.94 kB / 0.5139 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.4034, allocations: 8.062 kB / 0.5139 GB, free: 14.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005605/0.4039, allocations: 284.9 kB / 0.5142 GB, free: 14.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4039, allocations: 4.156 kB / 0.5142 GB, free: 14.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000296/0.4042, allocations: 47.09 kB / 0.5142 GB, free: 14.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.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 (20): * Single equations (assignments): 20 * 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 8.707e-05/0.4043, allocations: 103 kB / 0.5143 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.4046, allocations: 164.1 kB / 0.5145 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4046, allocations: 0 / 0.5145 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.4048, allocations: 80.94 kB / 0.5146 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004364/0.4052, allocations: 62.8 kB / 0.5146 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000941/0.4061, allocations: 0.5312 MB / 0.5152 GB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.4064, allocations: 0.7809 MB / 0.5159 GB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.4065, allocations: 40.88 kB / 0.516 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.982e-05/0.4066, allocations: 19.84 kB / 0.516 GB, free: 13.55 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4066, allocations: 4.844 kB / 0.516 GB, free: 13.55 MB / 382.1 MB Notification: Performance of Templates: time 0.006665/0.4133, allocations: 2.193 MB / 0.5181 GB, free: 13.41 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.032539383042604] Failed to read output from testmodel.py, exit status != 0: 0.42179700499400496 0.43287575599999994 0.288983132 Calling exit ...