Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",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.0007241/0.0007241, allocations: 93.05 kB / 16.65 MB, free: 6.59 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.0008851/0.0008853, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.246/1.246, allocations: 223.3 MB / 241.6 MB, free: 128 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1645/0.1645, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002944, allocations: 8.188 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1049, allocations: 59.18 MB / 460 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006045/0.111, allocations: 5.8 MB / 465.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004124/0.1151, allocations: 2.754 MB / 468.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003938/0.1156, allocations: 39.75 kB / 468.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004493/0.116, allocations: 103.2 kB / 468.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008701/0.1169, allocations: 426.2 kB / 469.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008105/0.1177, allocations: 418.4 kB / 469.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.119, allocations: 1.259 MB / 470.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.1201, allocations: 0.722 MB / 471.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004632/0.1206, allocations: 322.4 kB / 471.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005168/0.1211, allocations: 386.2 kB / 472.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.09e-05/0.1212, allocations: 28 kB / 472.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008337/0.122, allocations: 0.5534 MB / 472.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1222, allocations: 183.3 kB / 472.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002968/0.1225, allocations: 339.7 kB / 473.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009794/0.1235, allocations: 1.039 MB / 474.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1235, allocations: 0 / 474.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1235, allocations: 0 / 474.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.1235, allocations: 0 / 474.3 MB, free: 8.559 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001824/0.1253, allocations: 0.985 MB / 475.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.1254, allocations: 12.03 kB / 475.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/0.1255, allocations: 102.7 kB / 475.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.1266, allocations: 187.8 kB / 475.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007942/0.1275, allocations: 0.5287 MB / 476.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.1275, allocations: 49.66 kB / 476.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.1276, allocations: 60.28 kB / 476.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.129, allocations: 0.8059 MB / 477 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.129, allocations: 4 kB / 477 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.011e-05/0.1291, allocations: 20 kB / 477.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.593e-05/0.1291, allocations: 37.3 kB / 477.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.1306, allocations: 0.7584 MB / 477.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003842/0.1344, allocations: 2.939 MB / 480.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.1358, allocations: 0.6261 MB / 481.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006699/0.1365, allocations: 374.8 kB / 481.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.305e-05/0.1366, allocations: 4.438 kB / 481.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007619/0.1373, allocations: 442.3 kB / 482.2 MB, free: 352 kB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.447e-06/0.1373, allocations: 4 kB / 482.2 MB, free: 348 kB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004411/0.1418, allocations: 2.195 MB / 484.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.1418, allocations: 115.4 kB / 484.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000653/0.1425, allocations: 485.9 kB / 485 MB, free: 13.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.168e-05/0.1426, allocations: 37.69 kB / 485 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.1428, allocations: 308.5 kB / 485.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.1429, allocations: 197.1 kB / 485.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.12e-05/0.143, allocations: 57.69 kB / 485.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002698/0.1433, allocations: 370.8 kB / 486 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005998/0.1439, allocations: 301.1 kB / 486.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.1446, allocations: 426.8 kB / 486.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.146, allocations: 0.7614 MB / 487.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.146, allocations: 0 / 487.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002384/0.1484, allocations: 1.067 MB / 488.5 MB, free: 9.816 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000165/0.1485, allocations: 211.3 kB / 488.7 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1486, allocations: 4 kB / 488.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000631/0.1492, allocations: 189.6 kB / 488.9 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004801/0.1497, allocations: 119.8 kB / 489 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004521/0.1542, allocations: 3.854 MB / 492.9 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005212/0.1547, allocations: 67.92 kB / 492.9 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/0.1548, allocations: 24 kB / 492.9 MB, free: 5.035 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-06/0.1548, allocations: 8.062 kB / 493 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001714/0.1566, allocations: 0.8829 MB / 493.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1566, allocations: 8.188 kB / 493.8 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004606/0.1571, allocations: 169.5 kB / 494 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004575/0.1575, allocations: 123.8 kB / 494.1 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003357/0.1609, allocations: 3.631 MB / 497.8 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000491/0.1614, allocations: 59.94 kB / 497.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.181e-05/0.1614, allocations: 20.06 kB / 497.8 MB, free: 15.85 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003957/0.1618, allocations: 317 kB / 498.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.283e-05/0.1619, allocations: 63.19 kB / 498.2 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/0.1636, allocations: 0.8423 MB / 499.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.1636, allocations: 11.94 kB / 499.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.1637, allocations: 0 / 499.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.1637, allocations: 7.984 kB / 499.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.1663, allocations: 1.714 MB / 0.4891 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.1663, allocations: 0 / 0.4891 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006003/0.1669, allocations: 135.8 kB / 0.4892 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001999/0.1671, allocations: 61.61 kB / 0.4892 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.1672, allocations: 24.05 kB / 0.4893 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/0.169, allocations: 2.682 MB / 0.4919 GB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/0.1691, allocations: 3.938 kB / 0.4919 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.1713, allocations: 1.353 MB / 0.4932 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.1716, allocations: 192.3 kB / 0.4934 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.786e-05/0.1717, allocations: 12 kB / 0.4934 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.1721, allocations: 63.92 kB / 0.4935 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.1723, allocations: 56.44 kB / 0.4935 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.1723, allocations: 23.94 kB / 0.4935 GB, free: 7.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004746/0.1728, allocations: 342.8 kB / 0.4939 GB, free: 7.535 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1728, allocations: 0 / 0.4939 GB, free: 7.535 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009056/0.1737, allocations: 263.9 kB / 0.4941 GB, free: 7.277 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0025/0.1762, allocations: 1.909 MB / 0.496 GB, free: 5.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002854/0.1791, allocations: 1.789 MB / 0.4977 GB, free: 3.445 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1791, allocations: 0 / 0.4977 GB, free: 3.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009465/0.1801, allocations: 0.6221 MB / 0.4983 GB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008424/0.1809, allocations: 135 kB / 0.4985 GB, free: 2.676 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1901/0.371, allocations: 6.923 MB / 0.5052 GB, free: 53.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.3715, allocations: 0.9486 MB / 0.5062 GB, free: 52.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000475/0.372, allocations: 149.4 kB / 0.5063 GB, free: 52.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.3723, allocations: 231.9 kB / 0.5065 GB, free: 52.43 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3723, allocations: 0 / 0.5065 GB, free: 52.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.4, allocations: 15.04 MB / 0.5212 GB, free: 48.1 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.4002, allocations: 251.1 kB / 0.5214 GB, free: 47.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.405, allocations: 3.188 kB / 0.5214 GB, free: 47.84 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)