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.001264/0.001264, allocations: 114 kB / 17.06 MB, free: 5.992 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.001254/0.001254, allocations: 198.9 kB / 18 MB, free: 5.07 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.246/1.246, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1699/0.1699, allocations: 37.99 MB / 309.2 MB, free: 5.945 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.00157/0.00157, allocations: 75.89 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1067, allocations: 55.23 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006775/0.1135, allocations: 5.463 MB / 492.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003395/0.1169, allocations: 2.301 MB / 494.4 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005489/0.1175, allocations: 31.88 kB / 494.4 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009348/0.1185, allocations: 282.2 kB / 494.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008954/0.1194, allocations: 354 kB / 495 MB, free: 388 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1204, allocations: 0.4953 MB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001124/0.1216, allocations: 1.061 MB / 496.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007694/0.1223, allocations: 0.6233 MB / 497.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004629/0.1228, allocations: 410.4 kB / 497.6 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004172/0.1232, allocations: 402.2 kB / 498 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.1234, allocations: 80 kB / 498.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005154/0.1239, allocations: 359.2 kB / 498.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.1241, allocations: 227.2 kB / 498.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.1245, allocations: 397.8 kB / 499 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.1256, allocations: 1.086 MB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1256, allocations: 0 / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1256, allocations: 0 / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1256, allocations: 0 / 0.4884 GB, free: 11.25 MB / 382.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.001865/0.1275, allocations: 1.149 MB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1276, allocations: 15.89 kB / 0.4895 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.1277, allocations: 102.7 kB / 0.4896 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008057/0.1285, allocations: 159.8 kB / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000882/0.1294, allocations: 0.6202 MB / 0.4904 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.09e-05/0.1294, allocations: 45.67 kB / 0.4904 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.254e-05/0.1295, allocations: 68.28 kB / 0.4905 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.1307, allocations: 0.768 MB / 0.4912 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.1308, allocations: 7.938 kB / 0.4913 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.97e-05/0.1308, allocations: 27.98 kB / 0.4913 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-05/0.1309, allocations: 29.3 kB / 0.4913 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.1321, allocations: 0.657 MB / 0.492 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003791/0.1359, allocations: 2.907 MB / 0.4948 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.1374, allocations: 0.7382 MB / 0.4955 GB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004934/0.1379, allocations: 254.9 kB / 0.4958 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.145e-05/0.1379, allocations: 8.422 kB / 0.4958 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.138, allocations: 39 kB / 0.4958 GB, free: 3.359 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.824e-06/0.138, allocations: 0 / 0.4958 GB, free: 3.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001624/0.1396, allocations: 0.7445 MB / 0.4965 GB, free: 2.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.1397, allocations: 115.2 kB / 0.4966 GB, free: 2.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000704/0.1404, allocations: 0.5861 MB / 0.4972 GB, free: 1.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.555e-05/0.1405, allocations: 29.7 kB / 0.4972 GB, free: 1.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.1407, allocations: 361.1 kB / 0.4976 GB, free: 1.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.1409, allocations: 185.3 kB / 0.4978 GB, free: 1.297 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.141, allocations: 102.2 kB / 0.4979 GB, free: 1.191 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1412, allocations: 382.8 kB / 0.4982 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004973/0.1417, allocations: 231.4 kB / 0.4984 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005618/0.1423, allocations: 353.6 kB / 0.4988 GB, free: 184 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.1433, allocations: 0.5899 MB / 0.4994 GB, free: 15.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1433, allocations: 0 / 0.4994 GB, free: 15.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001784/0.1451, allocations: 0.8187 MB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1452, allocations: 4 kB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1452, allocations: 4 kB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004229/0.1456, allocations: 117.2 kB / 0.5003 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005678/0.1462, allocations: 143.7 kB / 0.5004 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002719/0.1489, allocations: 2.42 MB / 0.5028 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.1494, allocations: 87.39 kB / 0.5029 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.1494, allocations: 20 kB / 0.5029 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000611/0.1501, allocations: 385.3 kB / 0.5032 GB, free: 11.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005188/0.1506, allocations: 349.4 kB / 0.5036 GB, free: 11.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009379/0.1515, allocations: 0.5627 MB / 0.5041 GB, free: 10.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.274e-06/0.1516, allocations: 0 / 0.5041 GB, free: 10.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001376/0.1529, allocations: 0.7372 MB / 0.5048 GB, free: 9.652 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.153, allocations: 11.84 kB / 0.5049 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.153, allocations: 4 kB / 0.5049 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002546/0.1532, allocations: 96.8 kB / 0.505 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/0.1538, allocations: 139.9 kB / 0.5051 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.1557, allocations: 2.229 MB / 0.5073 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.1562, allocations: 71.58 kB / 0.5073 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.1562, allocations: 20 kB / 0.5074 GB, free: 6.941 MB / 398.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.0001612/0.1564, allocations: 212.1 kB / 0.5076 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.1565, allocations: 71.22 kB / 0.5076 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.1577, allocations: 0.6004 MB / 0.5082 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.1577, allocations: 11.94 kB / 0.5082 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.1577, allocations: 0 / 0.5082 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.1577, allocations: 3.984 kB / 0.5082 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/0.1598, allocations: 1.353 MB / 0.5095 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1598, allocations: 192 / 0.5095 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005685/0.1603, allocations: 119.8 kB / 0.5097 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.1604, allocations: 7.938 kB / 0.5097 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.169e-05/0.1604, allocations: 12 kB / 0.5097 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.1604, allocations: 0 / 0.5097 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1604, allocations: 0 / 0.5097 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.162, allocations: 0.9648 MB / 0.5106 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.1622, allocations: 192.2 kB / 0.5108 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.984e-05/0.1623, allocations: 19.92 kB / 0.5108 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003845/0.1627, allocations: 39.95 kB / 0.5109 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.907e-05/0.1628, allocations: 40.42 kB / 0.5109 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.1629, allocations: 12 kB / 0.5109 GB, free: 3.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005378/0.1634, allocations: 423 kB / 0.5113 GB, free: 2.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1634, allocations: 0 / 0.5113 GB, free: 2.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008233/0.1642, allocations: 271.2 kB / 0.5116 GB, free: 2.512 MB / 398.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.00188/0.1661, allocations: 1.516 MB / 0.5131 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.1682, allocations: 1.14 MB / 0.5142 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.1682, allocations: 0 / 0.5142 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000538/0.1687, allocations: 270.5 kB / 0.5144 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007247/0.1695, allocations: 151.2 kB / 0.5146 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.1796, allocations: 6.261 MB / 0.5207 GB, free: 8.934 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.1802, allocations: 0.9458 MB / 0.5216 GB, free: 7.961 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004421/0.1806, allocations: 128.6 kB / 0.5217 GB, free: 7.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003609/0.181, allocations: 263.2 kB / 0.522 GB, free: 7.578 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.181, allocations: 0 / 0.522 GB, free: 7.578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2403/0.4213, allocations: 15.84 MB / 0.5375 GB, free: 51.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.25, allocations: 3.422 kB / 0.5375 GB, free: 51.11 MB / 414.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)