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/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) Running command: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005967/0.005967, allocations: 105 kB / 15.74 MB, free: 6.492 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.001198/0.001198, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2138/0.2138, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 65.42 kB / 436.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08488, allocations: 54.97 MB / 491.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001877/0.08679, allocations: 1.008 MB / 492.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.08803, allocations: 1.217 MB / 493.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.159e-05/0.08813, allocations: 4 kB / 493.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002682/0.0884, allocations: 35.72 kB / 493.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.08856, allocations: 47.77 kB / 493.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.08875, allocations: 87.8 kB / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.08899, allocations: 219.5 kB / 494.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.614e-05/0.08909, allocations: 29.48 kB / 494.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.08921, allocations: 87.67 kB / 494.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.08936, allocations: 87.7 kB / 494.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.0894, allocations: 12 kB / 494.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.92e-05/0.08942, allocations: 8 kB / 494.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.728e-05/0.08949, allocations: 47.83 kB / 494.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.191e-05/0.08956, allocations: 55.61 kB / 494.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.08972, allocations: 136 kB / 494.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.08973, allocations: 0 / 494.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08973, allocations: 0 / 494.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.08974, allocations: 0 / 494.6 MB, free: 14.64 MB / 366.1 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.0009796/0.09073, allocations: 0.5083 MB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.09076, allocations: 8.031 kB / 495.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.754e-05/0.09081, allocations: 42.73 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.433e-05/0.09085, allocations: 20.75 kB / 495.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005024/0.09136, allocations: 292.6 kB / 495.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.09138, allocations: 4.375 kB / 495.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.09141, allocations: 12.31 kB / 495.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/0.09163, allocations: 130.7 kB / 495.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.09164, allocations: 3.938 kB / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.09166, allocations: 4 kB / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.09167, allocations: 4 kB / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.09185, allocations: 79.94 kB / 495.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006793/0.09254, allocations: 0.5866 MB / 496.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.0929, allocations: 146.4 kB / 496.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.99e-05/0.093, allocations: 52.83 kB / 496.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.09302, allocations: 4 kB / 496.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.683e-05/0.09304, allocations: 30.56 kB / 496.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.09305, allocations: 0 / 496.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003383/0.09339, allocations: 169.8 kB / 496.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.09343, allocations: 51.41 kB / 496.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004196/0.09386, allocations: 258.7 kB / 497 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.09389, allocations: 29.64 kB / 497 MB, free: 12.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.796e-05/0.09397, allocations: 120.1 kB / 497.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.094, allocations: 35.45 kB / 497.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.823e-05/0.09406, allocations: 33.7 kB / 497.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.09417, allocations: 326.8 kB / 497.5 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.153e-05/0.09425, allocations: 43.97 kB / 497.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.615e-05/0.09435, allocations: 62.55 kB / 497.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007168/0.09507, allocations: 253.1 kB / 497.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.09508, allocations: 0 / 497.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002542/0.09534, allocations: 161.4 kB / 498 MB, free: 10.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.09536, allocations: 8 kB / 498 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.09537, allocations: 0 / 498 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.09539, allocations: 0 / 498 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.09551, allocations: 31.86 kB / 498.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.09552, allocations: 8 kB / 498.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.09571, allocations: 31.81 kB / 498.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.09573, allocations: 12 kB / 498.1 MB, free: 10.87 MB / 366.1 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.0001223/0.09586, allocations: 130.6 kB / 498.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.0959, allocations: 15.81 kB / 498.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.34e-05/0.09595, allocations: 25.39 kB / 498.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.09596, allocations: 4 kB / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.09597, allocations: 7.875 kB / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.09598, allocations: 0 / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.0962, allocations: 233.6 kB / 498.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.09621, allocations: 4 kB / 498.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.09634, allocations: 12 kB / 498.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.09635, allocations: 0 / 498.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.09637, allocations: 7.984 kB / 498.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.09638, allocations: 0 / 498.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.09638, allocations: 3.938 kB / 498.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003344/0.09672, allocations: 287.3 kB / 498.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.036e-05/0.09679, allocations: 105 kB / 498.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.09682, allocations: 96 / 498.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.09704, allocations: 27.91 kB / 499 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.223e-05/0.09709, allocations: 11.92 kB / 499 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.09711, allocations: 8 kB / 499 MB, free: 9.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003363/0.09745, allocations: 187.2 kB / 499.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.09746, allocations: 4 kB / 499.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002363/0.0977, allocations: 20 kB / 499.2 MB, free: 9.699 MB / 366.1 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 0.000564/0.09827, allocations: 0.8215 MB / 500 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002114/0.09849, allocations: 105.7 kB / 0.4884 GB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.0985, allocations: 0 / 0.4884 GB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.54e-05/0.09859, allocations: 51.91 kB / 0.4884 GB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.0989, allocations: 27.92 kB / 0.4885 GB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.1016, allocations: 2.099 MB / 0.4905 GB, free: 6.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.1019, allocations: 0.724 MB / 0.4912 GB, free: 5.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.644e-05/0.102, allocations: 29.34 kB / 0.4912 GB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.062e-05/0.1021, allocations: 43.42 kB / 0.4913 GB, free: 5.668 MB / 366.1 MB Notification: Performance of SimCode: time 3.226e-06/0.1021, allocations: 0 / 0.4913 GB, free: 5.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.1214, allocations: 3.197 MB / 0.4944 GB, free: 2.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/7.633, allocations: 9.438 kB / 0.4944 GB, free: 2.586 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)