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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001167/0.001167, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001165/0.001165, allocations: 190 kB / 17.55 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1684/0.1684, allocations: 38.02 MB / 329.4 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 65.55 kB / 398.4 MB, free: 34.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09533, allocations: 58.06 MB / 456.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.008386/0.1038, allocations: 5.83 MB / 462.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004189/0.108, allocations: 2.331 MB / 464.6 MB, free: 96 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008644/0.1089, allocations: 35.81 kB / 464.6 MB, free: 60 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.1101, allocations: 246.8 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.1112, allocations: 298.6 kB / 465.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.1125, allocations: 454.7 kB / 465.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001695/0.1142, allocations: 1.042 MB / 466.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001327/0.1155, allocations: 0.627 MB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007637/0.1163, allocations: 410.3 kB / 467.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006675/0.117, allocations: 402.1 kB / 468.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.1172, allocations: 80 kB / 468.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007194/0.1179, allocations: 363.2 kB / 468.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.1181, allocations: 219.3 kB / 468.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004881/0.1186, allocations: 389.8 kB / 469.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001306/0.12, allocations: 1.071 MB / 470.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.12, allocations: 4 kB / 470.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.12, allocations: 4 kB / 470.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.56e-05/0.12, allocations: 0 / 470.2 MB, free: 10.48 MB / 350.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.002138/0.1222, allocations: 1.114 MB / 471.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1222, allocations: 15.89 kB / 471.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.1224, allocations: 110.6 kB / 471.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008227/0.1232, allocations: 159.7 kB / 471.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008853/0.1241, allocations: 0.5774 MB / 472.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.67e-05/0.1241, allocations: 49.62 kB / 472.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.1243, allocations: 68.34 kB / 472.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.1256, allocations: 0.7524 MB / 473 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.1256, allocations: 4 kB / 473 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-05/0.1257, allocations: 20 kB / 473.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.21e-05/0.1257, allocations: 33.3 kB / 473.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.1269, allocations: 0.6297 MB / 473.7 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004008/0.1309, allocations: 2.906 MB / 476.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.1323, allocations: 0.7031 MB / 477.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004449/0.1327, allocations: 235 kB / 477.6 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.1328, allocations: 8.422 kB / 477.6 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.1328, allocations: 39 kB / 477.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.1328, allocations: 4 kB / 477.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001512/0.1344, allocations: 0.702 MB / 478.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.1344, allocations: 107.2 kB / 478.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/0.1353, allocations: 0.586 MB / 479 MB, free: 1.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.594e-05/0.1353, allocations: 33.7 kB / 479 MB, free: 1.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/0.1356, allocations: 348.4 kB / 479.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1357, allocations: 181.4 kB / 479.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.1359, allocations: 106.3 kB / 479.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1361, allocations: 375 kB / 480 MB, free: 284 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004446/0.1365, allocations: 214.9 kB / 480.2 MB, free: 64 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.1371, allocations: 348.5 kB / 480.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.1381, allocations: 0.5529 MB / 481.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.1382, allocations: 0 / 481.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001809/0.14, allocations: 0.7846 MB / 481.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.14, allocations: 8 kB / 481.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.14, allocations: 4 kB / 481.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000421/0.1404, allocations: 113.2 kB / 482 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005994/0.1411, allocations: 135.8 kB / 482.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/0.1444, allocations: 2.424 MB / 484.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/0.1449, allocations: 91.3 kB / 484.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.145, allocations: 20 kB / 484.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006491/0.1456, allocations: 365.1 kB / 485 MB, free: 10.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005004/0.1462, allocations: 320.5 kB / 485.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008631/0.147, allocations: 0.5334 MB / 485.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.696e-06/0.1471, allocations: 4 kB / 485.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001317/0.1484, allocations: 0.6987 MB / 486.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1484, allocations: 4 kB / 486.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1484, allocations: 7.984 kB / 486.6 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/0.1487, allocations: 101.2 kB / 486.7 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.1492, allocations: 131.8 kB / 486.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.1514, allocations: 2.233 MB / 489.1 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004272/0.1519, allocations: 59.59 kB / 489.1 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/0.1519, allocations: 20 kB / 489.1 MB, free: 6.629 MB / 366.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.0001789/0.1521, allocations: 218.3 kB / 489.4 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.1523, allocations: 75.09 kB / 489.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.1534, allocations: 0.5653 MB / 490 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.1534, allocations: 11.98 kB / 490 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.1534, allocations: 4 kB / 490 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1535, allocations: 0 / 490 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.1557, allocations: 1.318 MB / 491.3 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.1557, allocations: 0 / 491.3 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005714/0.1563, allocations: 107.9 kB / 491.4 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.1563, allocations: 4 kB / 491.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.206e-05/0.1563, allocations: 12 kB / 491.5 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1563, allocations: 3.984 kB / 491.5 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1563, allocations: 0 / 491.5 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.1579, allocations: 0.9093 MB / 492.4 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.1582, allocations: 192.1 kB / 492.6 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.829e-05/0.1583, allocations: 8 kB / 492.6 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004122/0.1587, allocations: 39.95 kB / 492.6 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.1588, allocations: 32.39 kB / 492.6 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.198e-05/0.1588, allocations: 16.11 kB / 492.6 MB, free: 3.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005748/0.1594, allocations: 431 kB / 493.1 MB, free: 2.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1594, allocations: 0 / 493.1 MB, free: 2.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008796/0.1603, allocations: 267.2 kB / 493.3 MB, free: 2.348 MB / 366.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.001993/0.1623, allocations: 1.454 MB / 494.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.1645, allocations: 1.142 MB / 495.9 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1645, allocations: 0 / 495.9 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004664/0.165, allocations: 263.1 kB / 496.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.1657, allocations: 139.3 kB / 496.3 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.1769, allocations: 6.642 MB / 0.4912 GB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006078/0.1775, allocations: 0.9418 MB / 0.4921 GB, free: 7.508 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004599/0.178, allocations: 116.6 kB / 0.4922 GB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.1784, allocations: 255.4 kB / 0.4924 GB, free: 7.145 MB / 382.1 MB Notification: Performance of SimCode: time 2.054e-06/0.1784, allocations: 0 / 0.4924 GB, free: 7.145 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2562/0.4346, allocations: 14.74 MB / 0.5068 GB, free: 55.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.4348, allocations: 233.4 kB / 0.5071 GB, free: 55.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.071/2.506, allocations: 0.875 kB / 0.5071 GB, free: 55.48 MB / 382.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)