Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001438/0.001438, allocations: 180.1 kB / 8.011 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.117/2.117, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.001138/0.001138, allocations: 86.64 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2961/0.2961, allocations: 37.99 MB / 347.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.951e-05/1.949e-05, allocations: 4 kB / 409.9 MB, free: 35.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 56.32 MB / 466.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5016/0.6147, allocations: 102.9 MB / 0.5558 GB, free: 8.438 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.615, allocations: 83.8 kB / 0.5559 GB, free: 8.426 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09105/0.706, allocations: 22.44 MB / 0.5778 GB, free: 6.203 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.7061, allocations: 0 / 0.5778 GB, free: 6.203 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.737e-05/0.7062, allocations: 15.94 kB / 0.5778 GB, free: 6.188 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.003093/0.7093, allocations: 0.9527 MB / 0.5787 GB, free: 5.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.7094, allocations: 8.031 kB / 0.5787 GB, free: 5.227 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.7112, allocations: 186.2 kB / 0.5789 GB, free: 5.047 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001885/0.7132, allocations: 0.5858 MB / 0.5795 GB, free: 4.523 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.111e-05/0.7133, allocations: 20 kB / 0.5795 GB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.7134, allocations: 43.62 kB / 0.5795 GB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001462/0.7149, allocations: 464.9 kB / 0.58 GB, free: 4.191 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.7166, allocations: 0.6236 MB / 0.5806 GB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.42e-05/0.7167, allocations: 0 / 0.5806 GB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.352e-05/0.7168, allocations: 7.953 kB / 0.5806 GB, free: 3.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-05/0.7168, allocations: 29.3 kB / 0.5806 GB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007464/0.7243, allocations: 2.88 MB / 0.5834 GB, free: 1.281 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.7262, allocations: 0.6321 MB / 0.5841 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004952/0.7268, allocations: 194.5 kB / 0.5842 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.092e-05/0.7269, allocations: 12.38 kB / 0.5843 GB, free: 0.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.7269, allocations: 34.88 kB / 0.5843 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 3.416e-06/0.7269, allocations: 0 / 0.5843 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.001302/0.7282, allocations: 434.4 kB / 0.5847 GB, free: 324 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/0.7283, allocations: 115.3 kB / 0.5848 GB, free: 184 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/0.7291, allocations: 402.9 kB / 0.5852 GB, free: 15.87 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.677e-05/0.7292, allocations: 29.64 kB / 0.5852 GB, free: 15.84 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.7295, allocations: 382.1 kB / 0.5856 GB, free: 15.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002582/0.7298, allocations: 178.4 kB / 0.5858 GB, free: 15.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.7299, allocations: 0 / 0.5858 GB, free: 15.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.73, allocations: 329.6 kB / 0.5861 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.7305, allocations: 162.5 kB / 0.5862 GB, free: 14.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005597/0.7311, allocations: 295.9 kB / 0.5865 GB, free: 14.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005341/0.7316, allocations: 202.7 kB / 0.5867 GB, free: 14.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.7316, allocations: 4 kB / 0.5867 GB, free: 14.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002021/0.7337, allocations: 0.6143 MB / 0.5873 GB, free: 14.13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006272/0.7343, allocations: 1.394 MB / 0.5887 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.7344, allocations: 4 kB / 0.5887 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006298/0.735, allocations: 115.8 kB / 0.5888 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.7363, allocations: 142.3 kB / 0.5889 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009432/0.7372, allocations: 0.7227 MB / 0.5896 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.7383, allocations: 71.48 kB / 0.5897 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.62e-05/0.7384, allocations: 19.06 kB / 0.5897 GB, free: 11.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.7384, allocations: 5.719 kB / 0.5897 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001613/0.74, allocations: 0.5132 MB / 0.5902 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.7401, allocations: 4.469 kB / 0.5902 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004212/0.7405, allocations: 92.98 kB / 0.5903 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.7417, allocations: 150.7 kB / 0.5905 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/0.7446, allocations: 1.919 MB / 0.5923 GB, free: 9.387 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007099/0.7453, allocations: 55.72 kB / 0.5924 GB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.538e-05/0.7454, allocations: 19.56 kB / 0.5924 GB, free: 9.316 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 (62): * Single equations (assignments): 61 * 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.0003486/0.7458, allocations: 123.7 kB / 0.5925 GB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001341/0.7472, allocations: 429.9 kB / 0.5929 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.7474, allocations: 71.11 kB / 0.593 GB, free: 8.805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.7488, allocations: 473.1 kB / 0.5934 GB, free: 8.492 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.7489, allocations: 8 kB / 0.5935 GB, free: 8.484 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.7489, allocations: 0 / 0.5935 GB, free: 8.484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.7489, allocations: 0 / 0.5935 GB, free: 8.484 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.7519, allocations: 1.124 MB / 0.5946 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.752, allocations: 3.984 kB / 0.5946 GB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.7533, allocations: 123.3 kB / 0.5947 GB, free: 7.504 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.761e-05/0.7534, allocations: 4 kB / 0.5947 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.455e-05/0.7535, allocations: 11.42 kB / 0.5947 GB, free: 7.492 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.7535, allocations: 0 / 0.5947 GB, free: 7.492 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.7535, allocations: 0 / 0.5947 GB, free: 7.492 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.7555, allocations: 0.8015 MB / 0.5955 GB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004784/0.756, allocations: 181 kB / 0.5956 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.7562, allocations: 7.938 kB / 0.5956 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007813/0.757, allocations: 43.95 kB / 0.5957 GB, free: 6.676 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.7571, allocations: 40.06 kB / 0.5957 GB, free: 6.645 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.432e-05/0.7572, allocations: 19.42 kB / 0.5957 GB, free: 6.629 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000594/0.7578, allocations: 305.7 kB / 0.596 GB, free: 6.406 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7578, allocations: 0 / 0.596 GB, free: 6.406 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001386/0.7592, allocations: 251.6 kB / 0.5963 GB, free: 6.16 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 (52): * Single equations (assignments): 51 * 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.002282/0.7615, allocations: 1.431 MB / 0.5977 GB, free: 4.926 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.7641, allocations: 0.8238 MB / 0.5985 GB, free: 4.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.7641, allocations: 0 / 0.5985 GB, free: 4.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006024/0.7647, allocations: 221.5 kB / 0.5987 GB, free: 4.105 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.7659, allocations: 106 kB / 0.5988 GB, free: 4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004721/0.7706, allocations: 1.334 MB / 0.6001 GB, free: 2.609 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007367/0.7714, allocations: 0.9578 MB / 0.601 GB, free: 1.625 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006862/0.7721, allocations: 251.4 kB / 0.6013 GB, free: 1.379 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7721, allocations: 4 kB / 0.6013 GB, free: 1.375 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.79/3.562, allocations: 12.4 MB / 0.6134 GB, free: 4.977 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)