Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001041/0.001041, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001019/0.001019, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.301/1.301, allocations: 205.1 MB / 223.3 MB, free: 12.42 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1627/0.1627, allocations: 38 MB / 308.6 MB, free: 6.215 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.001398/0.001398, allocations: 67.5 kB / 374.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2399, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006553/0.2465, allocations: 5.862 MB / 435.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003409/0.25, allocations: 2.433 MB / 438.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005014/0.2505, allocations: 31.81 kB / 438.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008874/0.2514, allocations: 230.9 kB / 438.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006663/0.2521, allocations: 302.5 kB / 438.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008711/0.2529, allocations: 470.1 kB / 439.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008091/0.2538, allocations: 1.147 MB / 440.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006999/0.2545, allocations: 0.5087 MB / 440.9 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.2549, allocations: 342.4 kB / 441.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/0.2552, allocations: 386.1 kB / 441.6 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.451e-05/0.2553, allocations: 40 kB / 441.7 MB, free: 8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005299/0.2558, allocations: 395.1 kB / 442.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.256, allocations: 183.3 kB / 442.2 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.2562, allocations: 357.8 kB / 442.6 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007021/0.2569, allocations: 1.043 MB / 443.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.2569, allocations: 4 kB / 443.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2569, allocations: 0 / 443.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.2569, allocations: 0 / 443.6 MB, free: 6.031 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.001798/0.2587, allocations: 1.141 MB / 444.8 MB, free: 4.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.2588, allocations: 8.031 kB / 444.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.04e-05/0.2589, allocations: 102.7 kB / 444.9 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007741/0.2597, allocations: 159.8 kB / 445 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007823/0.2605, allocations: 0.589 MB / 445.6 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.628e-05/0.2605, allocations: 41.69 kB / 445.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.708e-05/0.2606, allocations: 68.25 kB / 445.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.2617, allocations: 0.7797 MB / 446.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.2618, allocations: 4 kB / 446.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.2618, allocations: 27.94 kB / 446.6 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.505e-05/0.2619, allocations: 29.3 kB / 446.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.263, allocations: 0.657 MB / 447.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00364/0.2666, allocations: 2.922 MB / 450.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.2682, allocations: 0.7458 MB / 450.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004938/0.2687, allocations: 250.9 kB / 451.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.978e-05/0.2687, allocations: 8.469 kB / 451.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.2688, allocations: 43 kB / 451.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.154e-06/0.2688, allocations: 0 / 451.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.001683/0.2705, allocations: 0.752 MB / 452 MB, free: 13.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.2705, allocations: 111.2 kB / 452.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00075/0.2713, allocations: 0.5822 MB / 452.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.2713, allocations: 33.7 kB / 452.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/0.2716, allocations: 361.2 kB / 453 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.2718, allocations: 177.4 kB / 453.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.272, allocations: 106.2 kB / 453.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2721, allocations: 374.8 kB / 453.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005138/0.2727, allocations: 231.4 kB / 453.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006039/0.2733, allocations: 365.5 kB / 454.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.2744, allocations: 0.5783 MB / 454.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2744, allocations: 0 / 454.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001734/0.2761, allocations: 0.8268 MB / 455.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.2761, allocations: 8 kB / 455.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2762, allocations: 4 kB / 455.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004073/0.2766, allocations: 112.7 kB / 455.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005763/0.2772, allocations: 139.8 kB / 455.9 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002738/0.2799, allocations: 2.206 MB / 458.1 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005013/0.2804, allocations: 83.33 kB / 458.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/0.2805, allocations: 24 kB / 458.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007307/0.2812, allocations: 381.3 kB / 458.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005446/0.2818, allocations: 353.6 kB / 458.9 MB, free: 6.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001015/0.2828, allocations: 0.5587 MB / 459.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.094e-06/0.2828, allocations: 96 / 459.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001484/0.2843, allocations: 0.7369 MB / 460.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2843, allocations: 4 kB / 460.2 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.2843, allocations: 4 kB / 460.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003109/0.2847, allocations: 108.3 kB / 460.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000574/0.2852, allocations: 144.1 kB / 460.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002001/0.2873, allocations: 2.019 MB / 462.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/0.2877, allocations: 75.48 kB / 462.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.2878, allocations: 20 kB / 462.6 MB, free: 2.184 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 (61): * Single equations (assignments): 60 * 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.0002364/0.288, allocations: 228.1 kB / 462.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.2882, allocations: 67.16 kB / 462.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.2895, allocations: 0.5929 MB / 463.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.2895, allocations: 4 kB / 463.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2895, allocations: 7.984 kB / 463.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.2895, allocations: 4 kB / 463.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002146/0.2917, allocations: 1.357 MB / 464.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.2917, allocations: 0 / 464.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005909/0.2923, allocations: 119.8 kB / 465 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.2923, allocations: 4 kB / 465 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.025e-05/0.2923, allocations: 12 kB / 465 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.2923, allocations: 7.938 kB / 465 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2924, allocations: 7.984 kB / 465 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001794/0.2942, allocations: 0.9481 MB / 466 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.2944, allocations: 192.1 kB / 466.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.89e-05/0.2945, allocations: 12 kB / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004005/0.2949, allocations: 43.89 kB / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.295, allocations: 44.38 kB / 466.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.2951, allocations: 8 kB / 466.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006062/0.2957, allocations: 423 kB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2957, allocations: 0 / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001016/0.2967, allocations: 275.1 kB / 466.9 MB, free: 13.75 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 (51): * Single equations (assignments): 50 * 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.002215/0.2989, allocations: 1.509 MB / 468.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00236/0.3013, allocations: 1.136 MB / 469.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.3013, allocations: 1 kB / 469.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005847/0.3019, allocations: 282.3 kB / 469.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008059/0.3027, allocations: 150.8 kB / 470 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.3151, allocations: 6.734 MB / 476.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.3157, allocations: 0.9418 MB / 477.7 MB, free: 2.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005075/0.3162, allocations: 120.6 kB / 477.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003863/0.3166, allocations: 255.3 kB / 478 MB, free: 2.355 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.3166, allocations: 7.938 kB / 478.1 MB, free: 2.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.3481, allocations: 14.59 MB / 492.6 MB, free: 3.742 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/0.3483, allocations: 227 kB / 492.9 MB, free: 3.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.401, allocations: 0 / 492.9 MB, free: 3.492 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)