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.001504/0.001504, allocations: 110.6 kB / 17.06 MB, free: 5.98 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.00185/0.00185, allocations: 195 kB / 18 MB, free: 5.066 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.38/1.38, 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.1707/0.1707, allocations: 37.98 MB / 309.2 MB, free: 5.949 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.001486/0.001486, allocations: 63.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09854, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.007023/0.1056, allocations: 5.44 MB / 492 MB, free: 3.375 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003738/0.1094, allocations: 2.293 MB / 494.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006511/0.11, allocations: 31.88 kB / 494.4 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.1111, allocations: 270.2 kB / 494.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009662/0.1121, allocations: 350 kB / 495 MB, free: 440 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.1133, allocations: 0.4952 MB / 495.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.1146, allocations: 1.046 MB / 496.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009521/0.1155, allocations: 0.6233 MB / 497.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005915/0.1161, allocations: 402.4 kB / 497.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005644/0.1167, allocations: 410.1 kB / 497.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.1169, allocations: 80 kB / 498 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005328/0.1174, allocations: 351.3 kB / 498.4 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.1176, allocations: 215.3 kB / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003397/0.118, allocations: 401.8 kB / 499 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.119, allocations: 1.075 MB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.119, allocations: 0 / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.119, allocations: 4 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.161e-05/0.1191, 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.002065/0.1212, allocations: 1.118 MB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1212, allocations: 19.77 kB / 0.4894 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.1213, allocations: 106.7 kB / 0.4895 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008135/0.1221, allocations: 159.7 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009873/0.1231, allocations: 0.6164 MB / 0.4903 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/0.1232, allocations: 45.69 kB / 0.4903 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.683e-05/0.1233, allocations: 72.22 kB / 0.4904 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1245, allocations: 0.7641 MB / 0.4911 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1246, allocations: 0 / 0.4911 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.285e-05/0.1246, allocations: 20 kB / 0.4912 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.236e-05/0.1247, allocations: 33.31 kB / 0.4912 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.1258, allocations: 0.6257 MB / 0.4918 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003949/0.1298, allocations: 2.891 MB / 0.4946 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1311, allocations: 0.6992 MB / 0.4953 GB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.1316, allocations: 231 kB / 0.4955 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.1316, allocations: 16.47 kB / 0.4955 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.1317, allocations: 39 kB / 0.4956 GB, free: 3.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.334e-06/0.1317, allocations: 0 / 0.4956 GB, free: 3.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001543/0.1332, allocations: 0.7019 MB / 0.4963 GB, free: 2.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/0.1333, allocations: 111.2 kB / 0.4964 GB, free: 2.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000739/0.1341, allocations: 0.5899 MB / 0.4969 GB, free: 2.141 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.848e-05/0.1341, allocations: 33.7 kB / 0.497 GB, free: 2.102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.1344, allocations: 352.5 kB / 0.4973 GB, free: 1.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.1345, allocations: 173.5 kB / 0.4975 GB, free: 1.578 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.1347, allocations: 110.2 kB / 0.4976 GB, free: 1.465 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1349, allocations: 375 kB / 0.4979 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/0.1353, allocations: 211 kB / 0.4981 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005188/0.1358, allocations: 348.5 kB / 0.4985 GB, free: 500 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009791/0.1368, allocations: 0.5529 MB / 0.499 GB, free: 15.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1369, allocations: 0 / 0.499 GB, free: 15.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001658/0.1385, allocations: 0.7807 MB / 0.4998 GB, free: 15.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1385, allocations: 11.94 kB / 0.4998 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1386, allocations: 7.938 kB / 0.4998 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003873/0.139, allocations: 109.2 kB / 0.4999 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005407/0.1395, allocations: 135.9 kB / 0.5 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.1423, allocations: 2.424 MB / 0.5024 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004681/0.1428, allocations: 79.41 kB / 0.5025 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.1428, allocations: 24.09 kB / 0.5025 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006075/0.1435, allocations: 369.2 kB / 0.5028 GB, free: 11.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004743/0.1439, allocations: 332.4 kB / 0.5032 GB, free: 11.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009291/0.1449, allocations: 0.5255 MB / 0.5037 GB, free: 10.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.354e-06/0.1449, allocations: 4 kB / 0.5037 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001291/0.1462, allocations: 0.7066 MB / 0.5044 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.1462, allocations: 8 kB / 0.5044 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1462, allocations: 4 kB / 0.5044 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002665/0.1465, allocations: 93.02 kB / 0.5045 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.147, allocations: 131.8 kB / 0.5046 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/0.1492, allocations: 2.237 MB / 0.5068 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004358/0.1497, allocations: 59.56 kB / 0.5068 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.1497, allocations: 27.94 kB / 0.5069 GB, free: 7.441 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.0001929/0.1499, allocations: 212.2 kB / 0.5071 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.15, allocations: 71.09 kB / 0.5071 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.1512, allocations: 0.5654 MB / 0.5077 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1512, allocations: 4 kB / 0.5077 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.1512, allocations: 4 kB / 0.5077 GB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1512, allocations: 3.984 kB / 0.5077 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.1532, allocations: 1.318 MB / 0.509 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1532, allocations: 4 kB / 0.509 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/0.1538, allocations: 107.9 kB / 0.5091 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.1538, allocations: 4 kB / 0.5091 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/0.1538, allocations: 12 kB / 0.5091 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1538, allocations: 4 kB / 0.5091 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1538, allocations: 0 / 0.5091 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.1553, allocations: 0.9064 MB / 0.51 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.1556, allocations: 200.1 kB / 0.5102 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.579e-05/0.1556, allocations: 12 kB / 0.5102 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.156, allocations: 31.95 kB / 0.5102 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.762e-05/0.1561, allocations: 40.39 kB / 0.5103 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.434e-05/0.1562, allocations: 8 kB / 0.5103 GB, free: 3.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005702/0.1567, allocations: 431 kB / 0.5107 GB, free: 3.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1568, allocations: 0 / 0.5107 GB, free: 3.414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000852/0.1576, allocations: 263.3 kB / 0.5109 GB, free: 3.156 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.001764/0.1594, allocations: 1.454 MB / 0.5124 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.1614, allocations: 1.099 MB / 0.5134 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1614, allocations: 0 / 0.5134 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004834/0.1619, allocations: 254.7 kB / 0.5137 GB, free: 304 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008062/0.1627, allocations: 151.4 kB / 0.5138 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009477/0.1722, allocations: 6.181 MB / 0.5199 GB, free: 9.785 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.1727, allocations: 0.9418 MB / 0.5208 GB, free: 8.812 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003938/0.1731, allocations: 120.6 kB / 0.5209 GB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003234/0.1735, allocations: 259.3 kB / 0.5211 GB, free: 8.438 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1735, allocations: 0 / 0.5211 GB, free: 8.438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2356/0.409, allocations: 15.58 MB / 0.5364 GB, free: 50.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.24, allocations: 6.953 kB / 0.5364 GB, free: 50.38 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)