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.0008334/0.0008336, allocations: 89.25 kB / 16.31 MB, free: 6.461 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.000974/0.0009743, allocations: 177.5 kB / 17.21 MB, free: 6.336 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.739/1.739, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1742/0.1742, allocations: 38.03 MB / 309.7 MB, free: 6.035 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.0005065/0.0005071, allocations: 12 kB / 376.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2913, allocations: 56.33 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.005176/0.2966, allocations: 5.146 MB / 438.1 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00345/0.3001, allocations: 2.29 MB / 440.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005274/0.3006, allocations: 31.81 kB / 440.4 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005096/0.3011, allocations: 111 kB / 440.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006746/0.3018, allocations: 282.4 kB / 440.8 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008885/0.3027, allocations: 380.6 kB / 441.2 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007987/0.3035, allocations: 0.9988 MB / 442.2 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008053/0.3043, allocations: 0.6237 MB / 442.8 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.3047, allocations: 306.5 kB / 443.1 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.305, allocations: 318.4 kB / 443.4 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.927e-05/0.3051, allocations: 24 kB / 443.4 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003354/0.3054, allocations: 167.6 kB / 443.6 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.3056, allocations: 151.3 kB / 443.7 MB, free: 7.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.3057, allocations: 153.3 kB / 443.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005591/0.3063, allocations: 0.7949 MB / 444.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3063, allocations: 0 / 444.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3063, allocations: 4 kB / 444.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.3063, allocations: 0 / 444.7 MB, free: 6.98 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.001652/0.308, allocations: 1.009 MB / 445.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.308, allocations: 19.89 kB / 445.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/0.3081, allocations: 106.5 kB / 445.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007468/0.3089, allocations: 162.8 kB / 446 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007364/0.3096, allocations: 0.5609 MB / 446.5 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.3097, allocations: 57.28 kB / 446.6 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.26e-05/0.3098, allocations: 60 kB / 446.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.3109, allocations: 0.7717 MB / 447.4 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.3109, allocations: 8 kB / 447.4 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.626e-05/0.311, allocations: 27.98 kB / 447.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.816e-05/0.311, allocations: 33.25 kB / 447.5 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.3122, allocations: 0.6804 MB / 448.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/0.3155, allocations: 2.946 MB / 451.1 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.317, allocations: 0.7736 MB / 451.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005038/0.3175, allocations: 271 kB / 452.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.486e-05/0.3176, allocations: 4.438 kB / 452.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/0.3176, allocations: 42.98 kB / 452.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.954e-06/0.3176, allocations: 0 / 452.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.001733/0.3194, allocations: 0.7911 MB / 453 MB, free: 14.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/0.3195, allocations: 115.2 kB / 453.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008909/0.3204, allocations: 0.5782 MB / 453.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.082e-05/0.3204, allocations: 33.7 kB / 453.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.3207, allocations: 357.2 kB / 454.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.3208, allocations: 185.2 kB / 454.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.3209, allocations: 8 kB / 454.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.3211, allocations: 386.9 kB / 454.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00049/0.3216, allocations: 233.2 kB / 454.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/0.3222, allocations: 377.5 kB / 455.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005456/0.3227, allocations: 274.1 kB / 455.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3227, allocations: 4 kB / 455.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001901/0.3246, allocations: 0.854 MB / 456.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.3248, allocations: 196.5 kB / 456.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3248, allocations: 4 kB / 456.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004562/0.3253, allocations: 144.7 kB / 456.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005616/0.3259, allocations: 139.9 kB / 456.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/0.3288, allocations: 2.26 MB / 459.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005826/0.3294, allocations: 99.39 kB / 459.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.3295, allocations: 27.94 kB / 459.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.3295, allocations: 4 kB / 459.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001352/0.3308, allocations: 0.6657 MB / 459.9 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3309, allocations: 4 kB / 459.9 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002583/0.3311, allocations: 105.1 kB / 460 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005401/0.3317, allocations: 135.9 kB / 460.1 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.3341, allocations: 2.019 MB / 462.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004443/0.3345, allocations: 95.33 kB / 462.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.45e-05/0.3346, allocations: 27.98 kB / 462.3 MB, free: 4.645 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 (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.0004317/0.335, allocations: 293 kB / 462.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.3351, allocations: 67.16 kB / 462.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.3364, allocations: 0.628 MB / 463.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.3365, allocations: 4 kB / 463.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.3365, allocations: 3.953 kB / 463.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3365, allocations: 4 kB / 463.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/0.3388, allocations: 1.384 MB / 464.6 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3388, allocations: 4 kB / 464.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005845/0.3394, allocations: 123.9 kB / 464.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3394, allocations: 0 / 464.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.3394, allocations: 15.95 kB / 464.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.782e-06/0.3395, allocations: 7.984 kB / 464.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3395, allocations: 0 / 464.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.3413, allocations: 0.9988 MB / 465.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.3417, allocations: 192.1 kB / 466 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.356e-05/0.3417, allocations: 16 kB / 466 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003641/0.3421, allocations: 51.91 kB / 466 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.3423, allocations: 40.38 kB / 466.1 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.3423, allocations: 12 kB / 466.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006858/0.343, allocations: 423 kB / 466.5 MB, free: 292 kB / 334.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.343, allocations: 0 / 466.5 MB, free: 292 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009898/0.344, allocations: 271.2 kB / 466.8 MB, free: 20 kB / 334.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 (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.002174/0.3462, allocations: 1.56 MB / 468.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002374/0.3486, allocations: 1.171 MB / 469.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3486, allocations: 448 / 469.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005672/0.3492, allocations: 286.3 kB / 469.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007619/0.35, allocations: 138.5 kB / 469.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008875/0.3589, allocations: 4.745 MB / 474.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006261/0.3595, allocations: 0.946 MB / 475.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004988/0.36, allocations: 128.6 kB / 475.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/0.3604, allocations: 255.3 kB / 476 MB, free: 6.617 MB / 350.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3604, allocations: 0 / 476 MB, free: 6.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.3951, allocations: 14.14 MB / 490.1 MB, free: 8.504 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/0.3953, allocations: 210.1 kB / 490.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.478, allocations: 4 kB / 490.3 MB, free: 8.266 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/linux/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) Environment - environmentSimulation: