Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",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.0009195/0.0009196, allocations: 90.39 kB / 16.65 MB, free: 6.586 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.0009033/0.0009033, allocations: 181.2 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.271/1.271, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1684/0.1684, allocations: 38.05 MB / 310.1 MB, free: 5.918 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004911/0.0004912, allocations: 12 kB / 377.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2358, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.005462/0.2413, allocations: 6.093 MB / 439.7 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00403/0.2454, allocations: 2.919 MB / 442.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007525/0.2462, allocations: 35.81 kB / 442.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005158/0.2467, allocations: 119.1 kB / 442.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009836/0.2477, allocations: 430.1 kB / 443.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.2487, allocations: 0.5016 MB / 443.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.2498, allocations: 1.4 MB / 445.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.2508, allocations: 0.841 MB / 445.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004079/0.2513, allocations: 350.2 kB / 446.3 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003839/0.2516, allocations: 417.9 kB / 446.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.016e-05/0.2517, allocations: 28 kB / 446.7 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007274/0.2524, allocations: 0.5768 MB / 447.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.2526, allocations: 199.2 kB / 447.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002237/0.2528, allocations: 387.3 kB / 447.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000797/0.2536, allocations: 1.172 MB / 449 MB, free: 3.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2537, allocations: 4 kB / 449 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.2537, allocations: 0 / 449 MB, free: 3.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.2537, allocations: 4 kB / 449 MB, free: 3.102 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001707/0.2554, allocations: 1.064 MB / 450.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.2554, allocations: 8.031 kB / 450.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.2556, allocations: 110.7 kB / 450.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.2567, allocations: 207.6 kB / 450.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007679/0.2574, allocations: 0.6085 MB / 451 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.2575, allocations: 61.67 kB / 451.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.2576, allocations: 76.27 kB / 451.1 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.2589, allocations: 0.8859 MB / 452 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.2589, allocations: 4 kB / 452 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.259, allocations: 31.97 kB / 452.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.502e-05/0.2591, allocations: 45.25 kB / 452.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.2605, allocations: 0.8053 MB / 452.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004669/0.2652, allocations: 3.276 MB / 456.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.267, allocations: 0.9915 MB / 457.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000605/0.2676, allocations: 323.3 kB / 457.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.2677, allocations: 12.55 kB / 457.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.2677, allocations: 43.11 kB / 457.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=59): time 2.424e-06/0.2677, allocations: 0 / 457.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.004935/0.2727, allocations: 2.619 MB / 460.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.578e-05/0.2728, allocations: 111.4 kB / 460.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007546/0.2735, allocations: 0.586 MB / 460.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.976e-05/0.2736, allocations: 41.7 kB / 460.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002486/0.2738, allocations: 364.2 kB / 461.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.274, allocations: 220.8 kB / 461.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.655e-05/0.2741, allocations: 69.61 kB / 461.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.2743, allocations: 386.7 kB / 461.9 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006292/0.2749, allocations: 277.9 kB / 462.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006565/0.2756, allocations: 429.8 kB / 462.6 MB, free: 4.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.2768, allocations: 0.7201 MB / 463.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2769, allocations: 0 / 463.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001637/0.2785, allocations: 0.8618 MB / 464.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.2786, allocations: 205.4 kB / 464.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.2787, allocations: 4 kB / 464.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002593/0.2789, allocations: 64.81 kB / 464.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000728/0.2797, allocations: 183.7 kB / 464.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.2812, allocations: 1.62 MB / 466.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.2817, allocations: 55.89 kB / 466.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/0.2818, allocations: 28 kB / 466.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.721e-06/0.2818, allocations: 8 kB / 466.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001417/0.2832, allocations: 0.7325 MB / 467.1 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2833, allocations: 8.031 kB / 467.1 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.2835, allocations: 60.81 kB / 467.2 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006866/0.2842, allocations: 175.8 kB / 467.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.2857, allocations: 1.637 MB / 469 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/0.2862, allocations: 47.95 kB / 469 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/0.2862, allocations: 31.94 kB / 469 MB, free: 14.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004238/0.2866, allocations: 328.8 kB / 469.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.2868, allocations: 83.05 kB / 469.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.2884, allocations: 0.7998 MB / 470.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.2884, allocations: 4 kB / 470.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2884, allocations: 4 kB / 470.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.2884, allocations: 7.922 kB / 470.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004211/0.2927, allocations: 2.193 MB / 472.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.577e-06/0.2927, allocations: 8 kB / 472.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005559/0.2932, allocations: 136.5 kB / 472.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.2935, allocations: 56.81 kB / 472.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-05/0.2935, allocations: 24 kB / 472.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.2951, allocations: 1.584 MB / 474.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.2951, allocations: 8 kB / 474.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.2975, allocations: 1.364 MB / 475.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/0.2978, allocations: 204.1 kB / 475.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.578e-05/0.2979, allocations: 23.98 kB / 475.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004947/0.2984, allocations: 63.83 kB / 475.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.2985, allocations: 63.8 kB / 476 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.514e-05/0.2986, allocations: 24 kB / 476 MB, free: 6.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006103/0.2992, allocations: 427 kB / 476.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2992, allocations: 0 / 476.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001003/0.3002, allocations: 256 kB / 476.7 MB, free: 6.066 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002533/0.3028, allocations: 1.913 MB / 478.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002387/0.3052, allocations: 1.29 MB / 479.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.3052, allocations: 3.938 kB / 479.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000919/0.3061, allocations: 0.5186 MB / 480.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.3076, allocations: 164.1 kB / 480.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.3185, allocations: 7.383 MB / 487.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005885/0.3191, allocations: 0.9861 MB / 488.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005879/0.3197, allocations: 145.2 kB / 489.1 MB, free: 9.141 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004108/0.3202, allocations: 283.3 kB / 489.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3202, allocations: 0 / 489.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03702/0.3572, allocations: 14.77 MB / 0.4923 GB, free: 10.12 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002455/0.3575, allocations: 230.3 kB / 0.4925 GB, free: 9.859 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.995/2.352, allocations: 0 / 0.4925 GB, free: 9.859 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)