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 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.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.001019/0.001019, allocations: 111 kB / 17.06 MB, free: 5.965 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.001025/0.001025, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.274/1.274, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1797/0.1797, allocations: 37.98 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.001562/0.001562, allocations: 67.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/0.09726, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006961/0.1043, allocations: 5.44 MB / 492 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003802/0.1081, allocations: 2.297 MB / 494.3 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006988/0.1088, allocations: 31.88 kB / 494.4 MB, free: 1.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.11, allocations: 274.2 kB / 494.6 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.111, allocations: 350 kB / 495 MB, free: 424 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.1122, allocations: 0.4991 MB / 495.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001558/0.1138, allocations: 1.038 MB / 496.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.115, allocations: 0.6233 MB / 497.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006887/0.1157, allocations: 406.4 kB / 497.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000617/0.1163, allocations: 402.1 kB / 497.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.1165, allocations: 80 kB / 498 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006116/0.1171, allocations: 359.2 kB / 498.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.1174, allocations: 215.3 kB / 498.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003841/0.1178, allocations: 389.8 kB / 498.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.1189, allocations: 1.082 MB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.119, allocations: 0 / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.119, allocations: 0 / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.31e-05/0.119, allocations: 0 / 0.4883 GB, free: 11.34 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.002356/0.1214, allocations: 1.126 MB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1214, allocations: 11.89 kB / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.1215, allocations: 110.6 kB / 0.4895 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008769/0.1224, allocations: 163.7 kB / 0.4897 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1234, allocations: 0.6047 MB / 0.4903 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.1235, allocations: 49.69 kB / 0.4903 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.1236, allocations: 68.27 kB / 0.4904 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.1249, allocations: 0.764 MB / 0.4911 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.1249, allocations: 0 / 0.4911 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.581e-05/0.125, allocations: 27.98 kB / 0.4912 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.537e-05/0.125, allocations: 33.3 kB / 0.4912 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.1262, allocations: 0.6296 MB / 0.4918 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003818/0.13, allocations: 2.887 MB / 0.4946 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.1313, allocations: 0.7032 MB / 0.4953 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004203/0.1317, allocations: 227 kB / 0.4955 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.1318, allocations: 16.42 kB / 0.4955 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1318, allocations: 39 kB / 0.4956 GB, free: 3.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.073e-06/0.1318, allocations: 4 kB / 0.4956 GB, free: 3.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001432/0.1332, allocations: 0.698 MB / 0.4963 GB, free: 2.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.1333, allocations: 111.2 kB / 0.4964 GB, free: 2.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007411/0.1341, allocations: 0.5938 MB / 0.497 GB, free: 2.133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.1341, allocations: 33.7 kB / 0.497 GB, free: 2.094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.1344, allocations: 352.5 kB / 0.4973 GB, free: 1.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.1345, allocations: 169.5 kB / 0.4975 GB, free: 1.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.1347, allocations: 110.2 kB / 0.4976 GB, free: 1.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1348, allocations: 378.9 kB / 0.498 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004233/0.1352, allocations: 211 kB / 0.4982 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004756/0.1357, allocations: 348.5 kB / 0.4985 GB, free: 492 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009071/0.1366, allocations: 0.549 MB / 0.499 GB, free: 15.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.1366, allocations: 0 / 0.499 GB, free: 15.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001583/0.1382, allocations: 0.7885 MB / 0.4998 GB, free: 15.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1383, allocations: 4 kB / 0.4998 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.1383, allocations: 4 kB / 0.4998 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003795/0.1387, allocations: 116.7 kB / 0.4999 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005369/0.1392, allocations: 140.2 kB / 0.5 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/0.1419, allocations: 2.416 MB / 0.5024 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004456/0.1424, allocations: 79.39 kB / 0.5025 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.664e-05/0.1424, allocations: 20 kB / 0.5025 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005718/0.143, allocations: 373.3 kB / 0.5029 GB, free: 11.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004425/0.1435, allocations: 332.3 kB / 0.5032 GB, free: 11.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008124/0.1443, allocations: 0.5256 MB / 0.5037 GB, free: 10.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/0.1443, allocations: 0 / 0.5037 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.00128/0.1456, allocations: 0.7106 MB / 0.5044 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1456, allocations: 11.94 kB / 0.5044 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1456, allocations: 4 kB / 0.5044 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002543/0.1459, allocations: 92.8 kB / 0.5045 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005152/0.1464, allocations: 127.9 kB / 0.5046 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/0.1484, allocations: 2.241 MB / 0.5068 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.1489, allocations: 63.56 kB / 0.5069 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.149, allocations: 20 kB / 0.5069 GB, free: 7.438 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 (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.0001854/0.1491, allocations: 216.1 kB / 0.5071 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.1493, allocations: 75.16 kB / 0.5071 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.1504, allocations: 0.5616 MB / 0.5077 GB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1504, allocations: 4 kB / 0.5077 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.1504, allocations: 0 / 0.5077 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.1505, allocations: 11.98 kB / 0.5077 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.1524, allocations: 1.314 MB / 0.509 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1524, allocations: 0 / 0.509 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005349/0.153, allocations: 111.9 kB / 0.5091 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.153, allocations: 0 / 0.5091 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.1531, allocations: 15.98 kB / 0.5091 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.1531, allocations: 4 kB / 0.5091 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1531, allocations: 0 / 0.5091 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.1547, allocations: 0.9026 MB / 0.51 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002575/0.155, allocations: 192.3 kB / 0.5102 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.255e-05/0.1551, allocations: 19.98 kB / 0.5102 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003758/0.1555, allocations: 35.91 kB / 0.5102 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.064e-05/0.1556, allocations: 36.39 kB / 0.5103 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.1556, allocations: 11.98 kB / 0.5103 GB, free: 3.824 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006367/0.1562, allocations: 427 kB / 0.5107 GB, free: 3.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1563, allocations: 4 kB / 0.5107 GB, free: 3.406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001041/0.1573, allocations: 263.3 kB / 0.5109 GB, free: 3.148 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 (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.001938/0.1593, allocations: 1.454 MB / 0.5124 GB, free: 1.656 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002042/0.1613, allocations: 1.096 MB / 0.5134 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1613, allocations: 0 / 0.5134 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005205/0.1619, allocations: 254.3 kB / 0.5137 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/0.1627, allocations: 147 kB / 0.5138 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.1731, allocations: 6.182 MB / 0.5199 GB, free: 9.785 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005627/0.1737, allocations: 0.9457 MB / 0.5208 GB, free: 8.809 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004443/0.1742, allocations: 116.6 kB / 0.5209 GB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.1746, allocations: 263.3 kB / 0.5211 GB, free: 8.434 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1746, allocations: 0 / 0.5211 GB, free: 8.434 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2367/0.4113, allocations: 15.58 MB / 0.5364 GB, free: 50.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.37, allocations: 11.12 kB / 0.5364 GB, free: 50.28 MB / 414.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)