Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_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.00103/0.00103, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.00109/0.00109, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.277/1.277, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.176/0.176, allocations: 38.03 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 58.5 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08683/0.0881, allocations: 58.07 MB / 456.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.007034/0.09517, allocations: 5.531 MB / 462 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003702/0.0989, allocations: 2.249 MB / 464.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006901/0.09962, allocations: 35.81 kB / 464.3 MB, free: 488 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.1006, allocations: 221 kB / 464.5 MB, free: 268 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009837/0.1016, allocations: 298.6 kB / 464.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009323/0.1026, allocations: 359.5 kB / 465.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.1037, allocations: 0.9165 MB / 466 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007969/0.1045, allocations: 0.5278 MB / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005761/0.1051, allocations: 342.6 kB / 466.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006054/0.1057, allocations: 366.5 kB / 467.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.1058, allocations: 68 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006466/0.1065, allocations: 343.2 kB / 467.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.1067, allocations: 191.4 kB / 467.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003829/0.1071, allocations: 330.3 kB / 468.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.1083, allocations: 0.9346 MB / 469.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1083, allocations: 3.938 kB / 469.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1083, allocations: 0 / 469.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.078e-05/0.1083, allocations: 0 / 469.1 MB, free: 11.61 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.002548/0.1109, allocations: 1.027 MB / 470.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.111, allocations: 11.89 kB / 470.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.1111, allocations: 90.7 kB / 470.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008578/0.1119, allocations: 148 kB / 470.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007946/0.1127, allocations: 0.5131 MB / 470.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.1128, allocations: 37.38 kB / 470.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.133e-05/0.1129, allocations: 48.38 kB / 471 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1142, allocations: 0.6747 MB / 471.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.1142, allocations: 8 kB / 471.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.1143, allocations: 16 kB / 471.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.364e-05/0.1143, allocations: 32.98 kB / 471.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.1155, allocations: 0.5972 MB / 472.3 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003377/0.1189, allocations: 2.704 MB / 475 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.1202, allocations: 0.6097 MB / 475.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004381/0.1206, allocations: 206.3 kB / 475.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.83e-05/0.1207, allocations: 8.359 kB / 475.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000589/0.1213, allocations: 305.7 kB / 476.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.874e-06/0.1213, allocations: 0 / 476.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001642/0.123, allocations: 0.7484 MB / 476.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/0.123, allocations: 144.5 kB / 477 MB, free: 3.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006082/0.1237, allocations: 0.4905 MB / 477.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.1237, allocations: 37.69 kB / 477.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.1239, allocations: 303.9 kB / 477.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1241, allocations: 138 kB / 478 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.1242, allocations: 90.16 kB / 478.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1244, allocations: 366.8 kB / 478.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004442/0.1248, allocations: 195 kB / 478.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005048/0.1253, allocations: 315.2 kB / 478.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009083/0.1262, allocations: 0.5177 MB / 479.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1263, allocations: 4.094 kB / 479.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001626/0.1279, allocations: 0.776 MB / 480.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.1279, allocations: 33.7 kB / 480.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1279, allocations: 4 kB / 480.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004231/0.1284, allocations: 148.9 kB / 480.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.1287, allocations: 83.89 kB / 480.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/0.1317, allocations: 2.654 MB / 483.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004282/0.1321, allocations: 79.39 kB / 483.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.1322, allocations: 19.98 kB / 483.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000515/0.1327, allocations: 333.1 kB / 483.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004348/0.1331, allocations: 303.2 kB / 483.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007935/0.1339, allocations: 0.5025 MB / 484.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-06/0.1339, allocations: 3.938 kB / 484.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001258/0.1352, allocations: 0.6786 MB / 485 MB, free: 10.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.1352, allocations: 37.69 kB / 485.1 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1353, allocations: 4 kB / 485.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003091/0.1356, allocations: 125 kB / 485.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003376/0.1359, allocations: 87.88 kB / 485.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002187/0.1381, allocations: 2.461 MB / 487.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.1385, allocations: 59.64 kB / 487.8 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.736e-05/0.1386, allocations: 20 kB / 487.8 MB, free: 7.918 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,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.1387, allocations: 219.7 kB / 488 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-05/0.1388, allocations: 59.33 kB / 488.1 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.1398, allocations: 0.5119 MB / 488.6 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1399, allocations: 8 kB / 488.6 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1399, allocations: 0 / 488.6 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1399, allocations: 4 kB / 488.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.1416, allocations: 1.178 MB / 489.8 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1416, allocations: 0 / 489.8 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.142, allocations: 91.88 kB / 489.9 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.111e-05/0.1421, allocations: 24.84 kB / 489.9 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.1422, allocations: 15.98 kB / 489.9 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009041/0.1431, allocations: 1.446 MB / 491.4 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1431, allocations: 3.938 kB / 491.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/0.1445, allocations: 0.8488 MB / 492.2 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/0.1447, allocations: 168.4 kB / 492.4 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.1448, allocations: 11.92 kB / 492.4 MB, free: 3.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003799/0.1452, allocations: 43.95 kB / 492.4 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/0.1453, allocations: 27.95 kB / 492.5 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.1453, allocations: 20 kB / 492.5 MB, free: 2.984 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004597/0.1458, allocations: 354.8 kB / 492.8 MB, free: 2.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1458, allocations: 3.938 kB / 492.8 MB, free: 2.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007344/0.1465, allocations: 247.3 kB / 493.1 MB, free: 2.395 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 (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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001695/0.1482, allocations: 1.402 MB / 494.5 MB, free: 0.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.1503, allocations: 1.174 MB / 495.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.1503, allocations: 0 / 495.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000574/0.1509, allocations: 354.8 kB / 496 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006238/0.1515, allocations: 121.8 kB / 496.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008991/0.1605, allocations: 5.724 MB / 0.4901 GB, free: 9.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.161, allocations: 0.8979 MB / 0.491 GB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003444/0.1613, allocations: 108.3 kB / 0.4911 GB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.1616, allocations: 199.3 kB / 0.4913 GB, free: 8.109 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1616, allocations: 4 kB / 0.4913 GB, free: 8.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.192, allocations: 13.43 MB / 0.5044 GB, free: 10.88 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/0.1922, allocations: 238.9 kB / 0.5046 GB, free: 10.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.341, allocations: 4.062 kB / 0.5046 GB, free: 10.62 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)