Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.0007637/0.0007638, allocations: 89.84 kB / 16.65 MB, free: 6.59 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.0009976/0.0009976, allocations: 181.8 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.289/1.289, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1698/0.1698, allocations: 38.05 MB / 310.1 MB, free: 5.902 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.0005001/0.0005, allocations: 16 kB / 377.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2415, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.004753/0.2463, allocations: 5.403 MB / 439 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.2493, allocations: 2.378 MB / 441.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003529/0.2496, allocations: 31.81 kB / 441.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003888/0.25, allocations: 103.1 kB / 441.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000568/0.2506, allocations: 298.6 kB / 441.8 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000757/0.2514, allocations: 470.2 kB / 442.3 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007099/0.2521, allocations: 1.143 MB / 443.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008226/0.2529, allocations: 0.7004 MB / 444.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.2532, allocations: 298.4 kB / 444.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002867/0.2535, allocations: 338.1 kB / 444.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.945e-05/0.2536, allocations: 24 kB / 444.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000398/0.254, allocations: 371.2 kB / 445.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.2541, allocations: 155.3 kB / 445.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.2543, allocations: 343.6 kB / 445.6 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006613/0.255, allocations: 0.9964 MB / 446.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.255, allocations: 0 / 446.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.255, allocations: 0 / 446.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.639e-06/0.255, allocations: 4 kB / 446.6 MB, free: 5.543 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00152/0.2566, allocations: 0.9894 MB / 447.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.2566, allocations: 8.031 kB / 447.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.2567, allocations: 102.7 kB / 447.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007754/0.2575, allocations: 159.8 kB / 447.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007235/0.2582, allocations: 0.5929 MB / 448.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.2583, allocations: 49.62 kB / 448.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.13e-05/0.2584, allocations: 64.36 kB / 448.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.2595, allocations: 0.768 MB / 449.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.2596, allocations: 15.92 kB / 449.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.484e-05/0.2596, allocations: 20 kB / 449.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/0.2597, allocations: 29.31 kB / 449.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.2607, allocations: 0.6492 MB / 450 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003494/0.2642, allocations: 2.926 MB / 453 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.2657, allocations: 0.7341 MB / 453.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000489/0.2662, allocations: 247 kB / 453.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.2662, allocations: 12.42 kB / 453.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/0.2663, allocations: 39 kB / 454 MB, free: 13.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.787e-06/0.2663, allocations: 96 / 454 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001673/0.268, allocations: 0.7372 MB / 454.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.2681, allocations: 111.2 kB / 454.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008281/0.2689, allocations: 0.5938 MB / 455.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.35e-05/0.269, allocations: 41.73 kB / 455.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003666/0.2694, allocations: 352.4 kB / 455.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.2695, allocations: 169.5 kB / 456 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.555e-05/0.2696, allocations: 49.69 kB / 456 MB, free: 11.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002394/0.2699, allocations: 382.9 kB / 456.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005335/0.2704, allocations: 221 kB / 456.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005829/0.271, allocations: 348.4 kB / 456.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009854/0.272, allocations: 0.5762 MB / 457.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.272, allocations: 4 kB / 457.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001717/0.2737, allocations: 0.8239 MB / 458.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.2739, allocations: 203.8 kB / 458.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.2739, allocations: 4 kB / 458.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000403/0.2743, allocations: 112.8 kB / 458.7 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/0.2749, allocations: 139.8 kB / 458.8 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.2777, allocations: 2.249 MB / 461.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004535/0.2781, allocations: 91.39 kB / 461.1 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.2782, allocations: 20.3 kB / 461.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.245e-06/0.2782, allocations: 7.938 kB / 461.2 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001213/0.2794, allocations: 0.6279 MB / 461.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2795, allocations: 7.938 kB / 461.8 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000249/0.2797, allocations: 100.3 kB / 461.9 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004935/0.2802, allocations: 127.9 kB / 462 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.2823, allocations: 2.034 MB / 464.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.2827, allocations: 71.5 kB / 464.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.2828, allocations: 20 kB / 464.2 MB, free: 3.16 MB / 334.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003938/0.2832, allocations: 308.9 kB / 464.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.2833, allocations: 67.22 kB / 464.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.2845, allocations: 0.5889 MB / 465.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.2845, allocations: 7.984 kB / 465.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.2845, allocations: 0 / 465.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.2845, allocations: 7.984 kB / 465.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.2865, allocations: 1.334 MB / 466.5 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2865, allocations: 0 / 466.5 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006029/0.2871, allocations: 115.9 kB / 466.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2871, allocations: 0 / 466.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/0.2872, allocations: 12 kB / 466.6 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.2872, allocations: 7.938 kB / 466.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2872, allocations: 4 kB / 466.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.2887, allocations: 0.9363 MB / 467.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.2889, allocations: 196.1 kB / 467.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.792e-05/0.289, allocations: 12 kB / 467.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000377/0.2894, allocations: 43.91 kB / 467.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.2895, allocations: 36.38 kB / 467.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.531e-05/0.2896, allocations: 16 kB / 467.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005761/0.2901, allocations: 427 kB / 468.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2901, allocations: 0 / 468.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000921/0.2911, allocations: 263.3 kB / 468.5 MB, free: 14.7 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00191/0.293, allocations: 1.486 MB / 470 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.2951, allocations: 1.107 MB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.2951, allocations: 5 kB / 471.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005102/0.2956, allocations: 270.3 kB / 471.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008592/0.2965, allocations: 142.5 kB / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.3089, allocations: 6.862 MB / 478.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006358/0.3096, allocations: 0.9457 MB / 479.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005121/0.3102, allocations: 116.6 kB / 479.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004203/0.3106, allocations: 255.3 kB / 479.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3106, allocations: 0 / 479.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.3445, allocations: 14.19 MB / 493.9 MB, free: 5.078 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002737/0.3448, allocations: 238.2 kB / 494.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/2.39, allocations: 0 / 494.1 MB, free: 4.816 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)