Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",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.0009506/0.0009504, allocations: 87.11 kB / 16.31 MB, free: 6.449 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.0009538/0.0009536, allocations: 179.1 kB / 17.21 MB, free: 6.32 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.527/1.527, allocations: 223.3 MB / 241.2 MB, free: 272 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1875/0.1875, allocations: 38.09 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003322, allocations: 8 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1252, allocations: 59.17 MB / 459.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005947/0.1312, allocations: 4.867 MB / 464.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003947/0.1351, allocations: 2.121 MB / 466.3 MB, free: 296 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006845/0.1359, allocations: 31.81 kB / 466.4 MB, free: 264 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004632/0.1363, allocations: 107.2 kB / 466.5 MB, free: 156 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008356/0.1372, allocations: 274.6 kB / 466.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008466/0.1381, allocations: 294.9 kB / 467 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009463/0.139, allocations: 0.8735 MB / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008824/0.1399, allocations: 0.5508 MB / 468.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000404/0.1403, allocations: 274.7 kB / 468.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003973/0.1407, allocations: 298.6 kB / 469 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.726e-05/0.1408, allocations: 24 kB / 469 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.1412, allocations: 155.6 kB / 469.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.1413, allocations: 131.5 kB / 469.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1415, allocations: 133.4 kB / 469.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008633/0.1423, allocations: 0.6778 MB / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.1424, allocations: 0 / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1424, allocations: 0 / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.809e-06/0.1424, allocations: 4 kB / 470.1 MB, free: 12.45 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001773/0.1442, allocations: 0.9293 MB / 471 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1442, allocations: 8.031 kB / 471.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.1443, allocations: 94.5 kB / 471.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007942/0.1451, allocations: 143.1 kB / 471.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009457/0.1461, allocations: 0.4889 MB / 471.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.604e-05/0.1462, allocations: 40.95 kB / 471.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.467e-05/0.1462, allocations: 55.91 kB / 471.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.1476, allocations: 0.6942 MB / 472.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.1477, allocations: 3.938 kB / 472.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.893e-05/0.1477, allocations: 16 kB / 472.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.375e-05/0.1478, allocations: 32.98 kB / 472.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.149, allocations: 0.6284 MB / 473.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003702/0.1527, allocations: 2.696 MB / 475.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/0.1541, allocations: 0.6453 MB / 476.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004593/0.1546, allocations: 226.3 kB / 476.8 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.024e-05/0.1547, allocations: 12.31 kB / 476.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006791/0.1554, allocations: 326 kB / 477.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.324e-06/0.1554, allocations: 0 / 477.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001833/0.1572, allocations: 0.7877 MB / 477.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.803e-05/0.1573, allocations: 140.5 kB / 478.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.158, allocations: 494.3 kB / 478.5 MB, free: 3.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.158, allocations: 33.7 kB / 478.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002502/0.1583, allocations: 307.8 kB / 478.9 MB, free: 3.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.1584, allocations: 142 kB / 479 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/0.1585, allocations: 8 kB / 479 MB, free: 3.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1586, allocations: 366.7 kB / 479.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004434/0.1591, allocations: 205 kB / 479.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005109/0.1596, allocations: 327.2 kB / 479.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.1601, allocations: 261.5 kB / 480.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.1602, allocations: 8 kB / 480.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001723/0.1619, allocations: 0.8191 MB / 481 MB, free: 1.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000218/0.1621, allocations: 211 kB / 481.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.1621, allocations: 4 kB / 481.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005472/0.1627, allocations: 169.1 kB / 481.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.1631, allocations: 103.8 kB / 481.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00328/0.1664, allocations: 2.452 MB / 483.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004555/0.1668, allocations: 87.39 kB / 484 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.364e-05/0.1669, allocations: 24.05 kB / 484 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.883e-06/0.1669, allocations: 8 kB / 484 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001276/0.1682, allocations: 0.6309 MB / 484.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1682, allocations: 12.02 kB / 484.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003312/0.1686, allocations: 132.1 kB / 484.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.1689, allocations: 95.81 kB / 484.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002598/0.1715, allocations: 2.241 MB / 487.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005/0.172, allocations: 79.39 kB / 487.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.008e-05/0.1721, allocations: 20 kB / 487.2 MB, free: 10.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0004784/0.1726, allocations: 293 kB / 487.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.434e-05/0.1727, allocations: 55.34 kB / 487.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.1739, allocations: 0.5393 MB / 488.1 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1739, allocations: 7.938 kB / 488.1 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.1739, allocations: 4 kB / 488.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1739, allocations: 3.953 kB / 488.1 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.1758, allocations: 1.19 MB / 489.3 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.1759, allocations: 11.94 kB / 489.3 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.1763, allocations: 95.88 kB / 489.4 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001151/0.1765, allocations: 28.84 kB / 489.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/0.1765, allocations: 8 kB / 489.5 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.1776, allocations: 1.351 MB / 490.8 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1777, allocations: 4.031 kB / 490.8 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.1793, allocations: 0.8839 MB / 491.7 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.1796, allocations: 172.3 kB / 491.9 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.916e-05/0.1796, allocations: 12 kB / 491.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003921/0.18, allocations: 51.94 kB / 491.9 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1802, allocations: 31.95 kB / 492 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.1802, allocations: 15.98 kB / 492 MB, free: 5.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000596/0.1808, allocations: 354.8 kB / 492.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1808, allocations: 3.938 kB / 492.3 MB, free: 5.121 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001092/0.1819, allocations: 247.3 kB / 492.6 MB, free: 4.879 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002104/0.184, allocations: 1.437 MB / 494 MB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002354/0.1864, allocations: 1.181 MB / 495.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1864, allocations: 0 / 495.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006295/0.1871, allocations: 359.1 kB / 495.5 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007297/0.1878, allocations: 118.7 kB / 495.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007321/0.1951, allocations: 3.906 MB / 499.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/0.1958, allocations: 0.8983 MB / 0.4887 GB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004226/0.1962, allocations: 100.3 kB / 0.4888 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.1965, allocations: 195.4 kB / 0.489 GB, free: 12.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.1966, allocations: 0 / 0.489 GB, free: 12.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03711/0.2337, allocations: 12.64 MB / 0.5014 GB, free: 68 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2804/0.5141, allocations: 230.1 kB / 0.5016 GB, free: 62.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.111/2.625, allocations: 1 kB / 0.5016 GB, free: 62.91 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat does not exist to compare? outputFormat=mat