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.001226/0.001226, allocations: 106.4 kB / 16.92 MB, free: 5.777 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.001251/0.001251, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.319/1.319, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1804/0.1804, allocations: 38.02 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 64.84 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09523, allocations: 58.05 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.008257/0.1035, allocations: 5.42 MB / 462.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004442/0.108, allocations: 2.245 MB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009715/0.109, allocations: 27.88 kB / 464.6 MB, free: 220 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.1102, allocations: 270.2 kB / 464.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.1112, allocations: 346 kB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.1124, allocations: 0.4943 MB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.1136, allocations: 1.042 MB / 466.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008248/0.1144, allocations: 0.6229 MB / 467.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004511/0.1149, allocations: 390.5 kB / 467.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004051/0.1153, allocations: 398.1 kB / 468.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.1154, allocations: 83.94 kB / 468.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005301/0.1159, allocations: 359.2 kB / 468.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.1161, allocations: 211.4 kB / 468.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002961/0.1164, allocations: 389.8 kB / 469.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009199/0.1173, allocations: 1.059 MB / 470.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1174, allocations: 0 / 470.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1174, allocations: 0 / 470.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1174, allocations: 0 / 470.3 MB, free: 10.57 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.001763/0.1191, allocations: 1.114 MB / 471.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1192, allocations: 11.89 kB / 471.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.1193, allocations: 102.7 kB / 471.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008155/0.1201, allocations: 163.7 kB / 471.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008032/0.1209, allocations: 0.5735 MB / 472.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.375e-05/0.121, allocations: 49.67 kB / 472.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.014e-05/0.1211, allocations: 64.31 kB / 472.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.1223, allocations: 0.7679 MB / 473.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.1224, allocations: 0 / 473.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.927e-05/0.1224, allocations: 23.98 kB / 473.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.225e-05/0.1225, allocations: 33.3 kB / 473.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.1236, allocations: 0.6257 MB / 473.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00385/0.1275, allocations: 2.922 MB / 476.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.1288, allocations: 0.6984 MB / 477.4 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004378/0.1292, allocations: 227 kB / 477.6 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.1293, allocations: 12.44 kB / 477.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.1293, allocations: 43.02 kB / 477.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.1293, allocations: 0 / 477.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001459/0.1308, allocations: 0.698 MB / 478.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.1309, allocations: 107.2 kB / 478.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007363/0.1316, allocations: 0.586 MB / 479.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.807e-05/0.1317, allocations: 41.83 kB / 479.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.1319, allocations: 348.4 kB / 479.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.1321, allocations: 173.5 kB / 479.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.1322, allocations: 102.1 kB / 479.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1324, allocations: 379 kB / 480.1 MB, free: 380 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004691/0.1329, allocations: 219 kB / 480.3 MB, free: 156 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005471/0.1334, allocations: 336.7 kB / 480.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009952/0.1344, allocations: 0.5567 MB / 481.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.1345, allocations: 0 / 481.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00171/0.1362, allocations: 0.7768 MB / 482 MB, free: 14.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1362, allocations: 8 kB / 482 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1362, allocations: 4 kB / 482 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004009/0.1366, allocations: 121.1 kB / 482.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.1372, allocations: 127.9 kB / 482.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.1401, allocations: 2.428 MB / 484.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004584/0.1405, allocations: 87.23 kB / 484.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/0.1406, allocations: 24 kB / 484.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006053/0.1412, allocations: 369.2 kB / 485.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004756/0.1417, allocations: 324.5 kB / 485.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008837/0.1426, allocations: 0.5294 MB / 486 MB, free: 10.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.1426, allocations: 0 / 486 MB, free: 10.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001337/0.1439, allocations: 0.7031 MB / 486.7 MB, free: 9.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.144, allocations: 15.94 kB / 486.7 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.144, allocations: 4 kB / 486.7 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002606/0.1442, allocations: 101 kB / 486.8 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005485/0.1448, allocations: 131.8 kB / 486.9 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.1469, allocations: 2.217 MB / 489.1 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004243/0.1473, allocations: 63.66 kB / 489.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.929e-05/0.1473, allocations: 28 kB / 489.2 MB, free: 6.723 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.0001769/0.1475, allocations: 217.2 kB / 489.4 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.1476, allocations: 75.03 kB / 489.5 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.1488, allocations: 0.5692 MB / 490.1 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1488, allocations: 4 kB / 490.1 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.1488, allocations: 0 / 490.1 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1488, allocations: 0 / 490.1 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.1508, allocations: 1.314 MB / 491.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1508, allocations: 7.938 kB / 491.4 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005382/0.1514, allocations: 103.9 kB / 491.5 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.1514, allocations: 4 kB / 491.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.1514, allocations: 15.98 kB / 491.5 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1514, allocations: 8 kB / 491.5 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1514, allocations: 0 / 491.5 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.153, allocations: 0.9013 MB / 492.4 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.1532, allocations: 192.1 kB / 492.6 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.926e-05/0.1533, allocations: 12 kB / 492.6 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003717/0.1537, allocations: 35.95 kB / 492.7 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.956e-05/0.1538, allocations: 40.39 kB / 492.7 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.1538, allocations: 12 kB / 492.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005907/0.1544, allocations: 423 kB / 493.1 MB, free: 2.711 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1544, allocations: 0 / 493.1 MB, free: 2.711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008764/0.1553, allocations: 263.2 kB / 493.4 MB, free: 2.453 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.001861/0.1572, allocations: 1.466 MB / 494.8 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002184/0.1594, allocations: 1.139 MB / 496 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1594, allocations: 4.125 kB / 496 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005029/0.1599, allocations: 262.3 kB / 496.2 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007476/0.1607, allocations: 146.8 kB / 496.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.1708, allocations: 6.388 MB / 0.491 GB, free: 8.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/0.1714, allocations: 0.9457 MB / 0.4919 GB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000472/0.1719, allocations: 120.6 kB / 0.492 GB, free: 7.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.1723, allocations: 251.3 kB / 0.4923 GB, free: 7.477 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1723, allocations: 0 / 0.4923 GB, free: 7.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2112/0.3835, allocations: 14.96 MB / 0.5069 GB, free: 55.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.02, allocations: 2.531 kB / 0.5069 GB, free: 55.45 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)