Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001941/0.001942, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 90.66 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2886/0.2886, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.967e-05/1.995e-05, allocations: 4 kB / 409.9 MB, free: 35.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1184, allocations: 56.33 MB / 466.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5189/0.6374, allocations: 102.6 MB / 0.5556 GB, free: 8.457 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.6378, allocations: 84.83 kB / 0.5556 GB, free: 8.445 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08996/0.7277, allocations: 22.25 MB / 0.5774 GB, free: 6.551 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.7278, allocations: 0 / 0.5774 GB, free: 6.551 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.278e-05/0.7279, allocations: 16 kB / 0.5774 GB, free: 6.535 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002937/0.7309, allocations: 0.943 MB / 0.5783 GB, free: 5.594 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.7309, allocations: 12.03 kB / 0.5783 GB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001783/0.7327, allocations: 174.8 kB / 0.5785 GB, free: 5.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001844/0.7346, allocations: 0.5919 MB / 0.5791 GB, free: 4.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.349e-05/0.7347, allocations: 20 kB / 0.5791 GB, free: 4.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.7349, allocations: 39.91 kB / 0.5791 GB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00138/0.7363, allocations: 459.7 kB / 0.5796 GB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.7379, allocations: 0.6188 MB / 0.5802 GB, free: 4.066 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.902e-05/0.738, allocations: 3.938 kB / 0.5802 GB, free: 4.062 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.679e-05/0.7381, allocations: 7.938 kB / 0.5802 GB, free: 4.055 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.652e-05/0.7382, allocations: 36.81 kB / 0.5802 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007103/0.7453, allocations: 2.846 MB / 0.583 GB, free: 1.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.747, allocations: 0.598 MB / 0.5836 GB, free: 1.219 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004577/0.7475, allocations: 184.8 kB / 0.5838 GB, free: 1.105 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.198e-05/0.7476, allocations: 12.42 kB / 0.5838 GB, free: 1.094 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.7477, allocations: 37.88 kB / 0.5838 GB, free: 1.051 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 3.828e-06/0.7477, allocations: 0 / 0.5838 GB, free: 1.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.00127/0.7489, allocations: 426.8 kB / 0.5842 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/0.749, allocations: 107.2 kB / 0.5843 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007446/0.7498, allocations: 396.4 kB / 0.5847 GB, free: 316 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.744e-05/0.7499, allocations: 25.81 kB / 0.5847 GB, free: 284 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.7502, allocations: 388.1 kB / 0.5851 GB, free: 15.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.7505, allocations: 175 kB / 0.5852 GB, free: 15.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.7505, allocations: 0 / 0.5852 GB, free: 15.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.7507, allocations: 329.7 kB / 0.5856 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000462/0.7511, allocations: 163.7 kB / 0.5857 GB, free: 15.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005467/0.7517, allocations: 290.5 kB / 0.586 GB, free: 15.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005215/0.7522, allocations: 195.6 kB / 0.5862 GB, free: 15.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.7523, allocations: 7.938 kB / 0.5862 GB, free: 15.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001994/0.7543, allocations: 0.6047 MB / 0.5868 GB, free: 14.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007218/0.755, allocations: 1.389 MB / 0.5881 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.7551, allocations: 7.984 kB / 0.5881 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007048/0.7558, allocations: 106.9 kB / 0.5882 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.757, allocations: 141.7 kB / 0.5884 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.7581, allocations: 0.722 MB / 0.5891 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009591/0.7591, allocations: 67.61 kB / 0.5892 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.846e-05/0.7591, allocations: 19.12 kB / 0.5892 GB, free: 12.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.7592, allocations: 6.031 kB / 0.5892 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001541/0.7607, allocations: 0.5052 MB / 0.5897 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.7608, allocations: 0 / 0.5897 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000416/0.7612, allocations: 90.44 kB / 0.5898 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.7622, allocations: 135 kB / 0.5899 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002868/0.7651, allocations: 1.929 MB / 0.5918 GB, free: 9.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000613/0.7658, allocations: 43.61 kB / 0.5918 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.7659, allocations: 20.12 kB / 0.5918 GB, free: 9.809 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002795/0.7662, allocations: 120 kB / 0.5919 GB, free: 9.688 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001178/0.7673, allocations: 433.3 kB / 0.5924 GB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.7675, allocations: 63.25 kB / 0.5924 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.7687, allocations: 462.7 kB / 0.5929 GB, free: 8.992 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.7688, allocations: 4 kB / 0.5929 GB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.7688, allocations: 0 / 0.5929 GB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.7688, allocations: 3.984 kB / 0.5929 GB, free: 8.984 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002406/0.7712, allocations: 1.1 MB / 0.5939 GB, free: 8.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.7713, allocations: 4 kB / 0.5939 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.7724, allocations: 119.2 kB / 0.5941 GB, free: 8.027 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/0.7724, allocations: 0 / 0.5941 GB, free: 8.027 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.495e-05/0.7725, allocations: 4 kB / 0.5941 GB, free: 8.023 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.306e-06/0.7725, allocations: 4 kB / 0.5941 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.7725, allocations: 0 / 0.5941 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.7742, allocations: 0.7761 MB / 0.5948 GB, free: 7.441 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003596/0.7746, allocations: 180.6 kB / 0.595 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.7747, allocations: 8.094 kB / 0.595 GB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006937/0.7754, allocations: 35.91 kB / 0.595 GB, free: 7.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.7756, allocations: 43.12 kB / 0.5951 GB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-05/0.7757, allocations: 9.812 kB / 0.5951 GB, free: 7.184 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005847/0.7763, allocations: 308.1 kB / 0.5954 GB, free: 6.957 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7763, allocations: 0 / 0.5954 GB, free: 6.957 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001312/0.7776, allocations: 253.7 kB / 0.5956 GB, free: 6.711 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 0.002144/0.7797, allocations: 1.408 MB / 0.597 GB, free: 5.496 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.7821, allocations: 0.8117 MB / 0.5978 GB, free: 4.914 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.7821, allocations: 0 / 0.5978 GB, free: 4.914 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005774/0.7827, allocations: 203.1 kB / 0.598 GB, free: 4.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.7838, allocations: 114.4 kB / 0.5981 GB, free: 4.691 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004541/0.7884, allocations: 1.327 MB / 0.5994 GB, free: 3.344 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007294/0.7892, allocations: 0.9534 MB / 0.6003 GB, free: 2.363 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006471/0.7898, allocations: 247.3 kB / 0.6006 GB, free: 2.121 MB / 394.7 MB Notification: Performance of SimCode: time 1.272e-06/0.7898, allocations: 0 / 0.6006 GB, free: 2.121 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.016/3.806, allocations: 12.19 MB / 0.6125 GB, free: 5.926 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)