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 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.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.001139/0.001139, allocations: 107.1 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.001173/0.001173, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.272/1.272, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1718/0.1718, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 58.73 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08707/0.0883, allocations: 58.07 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006414/0.09474, allocations: 5.447 MB / 462.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003332/0.09811, allocations: 2.249 MB / 464.7 MB, free: 228 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/0.09851, allocations: 35.75 kB / 464.7 MB, free: 192 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008776/0.0994, allocations: 274.3 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007184/0.1001, allocations: 346 kB / 465.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009076/0.101, allocations: 0.4942 MB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009435/0.102, allocations: 1.061 MB / 466.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007549/0.1028, allocations: 0.6192 MB / 467.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004555/0.1032, allocations: 394.4 kB / 467.9 MB, free: 13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.1037, allocations: 406.1 kB / 468.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1038, allocations: 80 kB / 468.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007615/0.1046, allocations: 367.2 kB / 468.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.1048, allocations: 219.3 kB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004501/0.1053, allocations: 397.8 kB / 469.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00112/0.1064, allocations: 1.055 MB / 470.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.1064, allocations: 0 / 470.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1064, allocations: 0 / 470.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1064, allocations: 4 kB / 470.4 MB, free: 10.5 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.002203/0.1087, allocations: 1.145 MB / 471.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1087, allocations: 15.89 kB / 471.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.1089, allocations: 98.7 kB / 471.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008467/0.1097, allocations: 155.8 kB / 471.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009208/0.1107, allocations: 0.5812 MB / 472.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.1107, allocations: 53.61 kB / 472.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.1108, allocations: 60.38 kB / 472.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.1122, allocations: 0.7719 MB / 473.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.1122, allocations: 4 kB / 473.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-05/0.1123, allocations: 23.98 kB / 473.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.024e-05/0.1124, allocations: 33.3 kB / 473.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.1137, allocations: 0.657 MB / 473.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004269/0.118, allocations: 2.918 MB / 476.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.1196, allocations: 0.7344 MB / 477.6 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/0.1201, allocations: 250.9 kB / 477.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.941e-05/0.1202, allocations: 8.438 kB / 477.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.1203, allocations: 47 kB / 477.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.386e-06/0.1203, allocations: 0 / 477.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001832/0.1221, allocations: 0.7481 MB / 478.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.1222, allocations: 115.2 kB / 478.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009174/0.1231, allocations: 0.5789 MB / 479.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.618e-05/0.1232, allocations: 33.7 kB / 479.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.1235, allocations: 356.5 kB / 479.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.1237, allocations: 181.4 kB / 479.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.1239, allocations: 98.34 kB / 480 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002944/0.1242, allocations: 386.7 kB / 480.4 MB, free: 108 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005987/0.1248, allocations: 227.4 kB / 480.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007082/0.1256, allocations: 363.6 kB / 480.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.1267, allocations: 0.5861 MB / 481.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1267, allocations: 0 / 481.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001932/0.1286, allocations: 0.819 MB / 482.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.1288, allocations: 8 kB / 482.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.1288, allocations: 4 kB / 482.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004696/0.1293, allocations: 108.8 kB / 482.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005966/0.1299, allocations: 143.9 kB / 482.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003041/0.1329, allocations: 2.424 MB / 485 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000533/0.1335, allocations: 87.45 kB / 485.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/0.1335, allocations: 24 kB / 485.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007068/0.1342, allocations: 377.3 kB / 485.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005392/0.1348, allocations: 345.6 kB / 485.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001103/0.1359, allocations: 0.5665 MB / 486.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.016e-06/0.1359, allocations: 0 / 486.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001719/0.1376, allocations: 0.7294 MB / 487.1 MB, free: 8.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1377, allocations: 11.97 kB / 487.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1377, allocations: 4 kB / 487.2 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003008/0.138, allocations: 104.6 kB / 487.3 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005888/0.1386, allocations: 139.8 kB / 487.4 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/0.1411, allocations: 2.233 MB / 489.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005277/0.1417, allocations: 71.61 kB / 489.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/0.1417, allocations: 27.94 kB / 489.7 MB, free: 6.242 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 (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.000232/0.142, allocations: 219.2 kB / 489.9 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.1421, allocations: 67.19 kB / 490 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001395/0.1435, allocations: 0.6004 MB / 490.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1435, allocations: 4 kB / 490.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1435, allocations: 0 / 490.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.1435, allocations: 7.984 kB / 490.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.1459, allocations: 1.357 MB / 492 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.146, allocations: 0 / 492 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005865/0.1465, allocations: 115.9 kB / 492.1 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.1466, allocations: 7.984 kB / 492.1 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.1466, allocations: 12 kB / 492.1 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.1466, allocations: 0 / 492.1 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1466, allocations: 4 kB / 492.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.1484, allocations: 0.9597 MB / 493.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003336/0.1487, allocations: 192.1 kB / 493.3 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.1488, allocations: 12 kB / 493.3 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.1493, allocations: 39.94 kB / 493.3 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.1494, allocations: 40.39 kB / 493.3 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.1494, allocations: 12 kB / 493.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006119/0.15, allocations: 423.1 kB / 493.8 MB, free: 2.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.15, allocations: 3.938 kB / 493.8 MB, free: 2.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000941/0.151, allocations: 271.2 kB / 494 MB, free: 1.82 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 (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.002112/0.1531, allocations: 1.509 MB / 495.6 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.1555, allocations: 1.191 MB / 496.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1556, allocations: 0 / 496.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005468/0.1561, allocations: 274.3 kB / 497 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007878/0.1569, allocations: 155.6 kB / 497.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.1677, allocations: 6.472 MB / 0.4918 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006193/0.1684, allocations: 0.9457 MB / 0.4928 GB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005016/0.1689, allocations: 128.6 kB / 0.4929 GB, free: 6.879 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/0.1693, allocations: 259.3 kB / 0.4931 GB, free: 6.629 MB / 382.1 MB Notification: Performance of SimCode: time 2.815e-06/0.1693, allocations: 0 / 0.4931 GB, free: 6.629 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2027/0.372, allocations: 15.19 MB / 0.508 GB, free: 56.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.42, allocations: 13.69 kB / 0.508 GB, free: 56.23 MB / 382.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)