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.0009429/0.0009429, allocations: 87.83 kB / 16.31 MB, free: 5.617 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.0008642/0.0008644, allocations: 180.4 kB / 17.2 MB, free: 5.555 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.544/1.544, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1733/0.1733, allocations: 38.11 MB / 330.4 MB, free: 8.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003255, allocations: 8 kB / 400.2 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.155, allocations: 59.17 MB / 459.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.007679/0.1628, allocations: 5.488 MB / 464.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005336/0.1681, allocations: 2.627 MB / 467.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008196/0.169, allocations: 39.75 kB / 467.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005574/0.1696, allocations: 119.1 kB / 467.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001323/0.1709, allocations: 394 kB / 468 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1722, allocations: 342.7 kB / 468.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001542/0.1737, allocations: 1.068 MB / 469.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.175, allocations: 0.6482 MB / 470 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000621/0.1757, allocations: 314.5 kB / 470.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005737/0.1763, allocations: 362.4 kB / 470.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.707e-05/0.1763, allocations: 28 kB / 470.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006739/0.177, allocations: 263.3 kB / 471 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002318/0.1773, allocations: 175.3 kB / 471.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001819/0.1775, allocations: 153.3 kB / 471.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009829/0.1784, allocations: 0.791 MB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.1785, allocations: 4 kB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1785, allocations: 0 / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.1785, allocations: 0 / 472.1 MB, free: 10.48 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.002153/0.1807, allocations: 0.9888 MB / 473.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1807, allocations: 12.03 kB / 473.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.1808, allocations: 102.5 kB / 473.2 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.1821, allocations: 182.9 kB / 473.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1831, allocations: 0.5121 MB / 473.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/0.1831, allocations: 53.27 kB / 473.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.1832, allocations: 59.97 kB / 474 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.1848, allocations: 0.7943 MB / 474.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.1848, allocations: 3.938 kB / 474.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.185, allocations: 24 kB / 474.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-05/0.185, allocations: 37.3 kB / 474.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.1866, allocations: 0.7545 MB / 475.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004974/0.1916, allocations: 2.935 MB / 478.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.1931, allocations: 0.6143 MB / 479.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007042/0.1938, allocations: 370.8 kB / 479.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.203e-05/0.1939, allocations: 12.42 kB / 479.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008169/0.1947, allocations: 446.3 kB / 480 MB, free: 2.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.816e-06/0.1947, allocations: 0 / 480 MB, free: 2.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004608/0.1993, allocations: 2.187 MB / 482.2 MB, free: 28 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.74e-05/0.1995, allocations: 111.4 kB / 482.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007481/0.2002, allocations: 478 kB / 482.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.631e-05/0.2003, allocations: 41.73 kB / 482.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.2006, allocations: 308.4 kB / 483.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.2008, allocations: 197.1 kB / 483.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.2008, allocations: 12 kB / 483.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.201, allocations: 374.8 kB / 483.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.2016, allocations: 297.1 kB / 483.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007128/0.2024, allocations: 422.8 kB / 484.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000734/0.2031, allocations: 371.7 kB / 484.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2031, allocations: 4 kB / 484.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002337/0.2055, allocations: 1.06 MB / 485.8 MB, free: 12.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001853/0.2057, allocations: 203.5 kB / 486 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.2057, allocations: 4 kB / 486 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000754/0.2064, allocations: 205.6 kB / 486.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.207, allocations: 127.8 kB / 486.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004778/0.2118, allocations: 3.856 MB / 490.2 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005962/0.2124, allocations: 68 kB / 490.2 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.042e-05/0.2125, allocations: 23.98 kB / 490.2 MB, free: 7.488 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.396e-06/0.2125, allocations: 4 kB / 490.3 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001751/0.2142, allocations: 0.8869 MB / 491.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2142, allocations: 4 kB / 491.1 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004959/0.2147, allocations: 173.7 kB / 491.3 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.2152, allocations: 119.8 kB / 491.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003919/0.2192, allocations: 3.619 MB / 495 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005902/0.2198, allocations: 60 kB / 495.1 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.517e-05/0.2198, allocations: 23.98 kB / 495.1 MB, free: 2.312 MB / 366.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,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.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 (59): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0005222/0.2204, allocations: 305 kB / 495.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.313e-05/0.2205, allocations: 59.34 kB / 495.5 MB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/0.2222, allocations: 0.846 MB / 496.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.2223, allocations: 15.94 kB / 496.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2223, allocations: 3.953 kB / 496.4 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.2223, allocations: 7.984 kB / 496.4 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003036/0.2253, allocations: 1.691 MB / 498.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.2254, allocations: 7.984 kB / 498.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006115/0.226, allocations: 144 kB / 498.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002904/0.2263, allocations: 65.61 kB / 498.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.2263, allocations: 12 kB / 498.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002805/0.2291, allocations: 2.682 MB / 0.4892 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.2292, allocations: 3.938 kB / 0.4892 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.2319, allocations: 1.349 MB / 0.4905 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.2323, allocations: 188.3 kB / 0.4907 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.464e-05/0.2324, allocations: 16 kB / 0.4907 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005635/0.233, allocations: 67.92 kB / 0.4908 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.2331, allocations: 56.42 kB / 0.4909 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.2332, allocations: 16 kB / 0.4909 GB, free: 10.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005683/0.2338, allocations: 342.8 kB / 0.4912 GB, free: 10.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2338, allocations: 0 / 0.4912 GB, free: 10.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001236/0.235, allocations: 263.9 kB / 0.4914 GB, free: 9.762 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002959/0.238, allocations: 1.91 MB / 0.4933 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00338/0.2414, allocations: 1.774 MB / 0.495 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.545e-06/0.2414, allocations: 0 / 0.495 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.2425, allocations: 0.6182 MB / 0.4956 GB, free: 5.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009827/0.2435, allocations: 134.4 kB / 0.4958 GB, free: 5.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009316/0.2529, allocations: 4.623 MB / 0.5003 GB, free: 440 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2806/0.5335, allocations: 0.937 MB / 0.5012 GB, free: 54.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007471/0.5343, allocations: 153 kB / 0.5013 GB, free: 54.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.5348, allocations: 232.7 kB / 0.5016 GB, free: 54.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5348, allocations: 0 / 0.5016 GB, free: 54.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04096/0.5758, allocations: 14.81 MB / 0.516 GB, free: 50.47 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/0.576, allocations: 228.2 kB / 0.5163 GB, free: 50.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/2.73, allocations: 0 / 0.5163 GB, free: 50.23 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/linux/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) Environment - environmentSimulation: