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 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.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.0007365/0.0007365, allocations: 90.61 kB / 16.65 MB, free: 6.539 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.0008832/0.0008833, allocations: 173.1 kB / 17.56 MB, free: 6.18 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.323/1.323, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1682/0.1682, allocations: 38.05 MB / 310.1 MB, free: 5.988 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.0005025/0.0005025, allocations: 12.33 kB / 377.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2166, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.00457/0.2212, allocations: 5.142 MB / 438.7 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002684/0.2239, allocations: 2.277 MB / 441 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003773/0.2243, allocations: 27.88 kB / 441 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003536/0.2247, allocations: 87.28 kB / 441.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005568/0.2252, allocations: 306.6 kB / 441.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005949/0.2259, allocations: 363.4 kB / 441.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006303/0.2265, allocations: 1.002 MB / 442.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006978/0.2272, allocations: 0.6401 MB / 443.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002731/0.2275, allocations: 270.6 kB / 443.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.2278, allocations: 306.5 kB / 444 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.651e-05/0.2278, allocations: 24 kB / 444 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004099/0.2282, allocations: 371.1 kB / 444.4 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.2284, allocations: 135.5 kB / 444.5 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.2286, allocations: 303.9 kB / 444.8 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000621/0.2292, allocations: 0.8797 MB / 445.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2292, allocations: 0 / 445.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2292, allocations: 0 / 445.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.2292, allocations: 4 kB / 445.7 MB, free: 6.469 MB / 318.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.001539/0.2308, allocations: 0.9255 MB / 446.6 MB, free: 5.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2308, allocations: 8.031 kB / 446.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.55e-05/0.2309, allocations: 94.69 kB / 446.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007365/0.2317, allocations: 140 kB / 446.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.2323, allocations: 0.5093 MB / 447.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.2323, allocations: 41.36 kB / 447.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.056e-05/0.2324, allocations: 52.36 kB / 447.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.2334, allocations: 0.6942 MB / 448.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.2335, allocations: 4 kB / 448.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.2335, allocations: 27.97 kB / 448.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.2336, allocations: 21 kB / 448.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.2347, allocations: 0.6362 MB / 448.8 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.2373, allocations: 2.715 MB / 451.5 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.2385, allocations: 0.6357 MB / 452.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004728/0.239, allocations: 234.2 kB / 452.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.239, allocations: 4.328 kB / 452.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006037/0.2396, allocations: 317.8 kB / 452.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.083e-06/0.2396, allocations: 0 / 452.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001765/0.2414, allocations: 0.7955 MB / 453.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.2415, allocations: 144.6 kB / 453.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006369/0.2421, allocations: 0.498 MB / 454.2 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/0.2422, allocations: 37.7 kB / 454.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.2424, allocations: 308 kB / 454.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.2425, allocations: 134.1 kB / 454.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.2426, allocations: 45.7 kB / 454.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.2427, allocations: 370.8 kB / 455 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.2432, allocations: 201 kB / 455.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000529/0.2438, allocations: 331.2 kB / 455.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009942/0.2448, allocations: 0.5567 MB / 456.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2448, allocations: 0 / 456.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001758/0.2465, allocations: 0.8346 MB / 456.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.2467, allocations: 219 kB / 457.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2467, allocations: 0 / 457.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004632/0.2472, allocations: 145.1 kB / 457.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.2475, allocations: 99.81 kB / 457.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/0.2506, allocations: 2.467 MB / 459.9 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.2511, allocations: 91.48 kB / 460 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.2511, allocations: 19.98 kB / 460 MB, free: 7.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/0.2511, allocations: 4 kB / 460 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/0.2524, allocations: 0.6428 MB / 460.6 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2525, allocations: 4 kB / 460.6 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003291/0.2528, allocations: 133.1 kB / 460.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.2532, allocations: 95.81 kB / 460.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.2553, allocations: 2.252 MB / 463.1 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004547/0.2558, allocations: 79.55 kB / 463.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.2559, allocations: 23.94 kB / 463.2 MB, free: 4.059 MB / 334.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.000318/0.2562, allocations: 281.5 kB / 463.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.442e-05/0.2563, allocations: 55.34 kB / 463.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.2575, allocations: 0.5434 MB / 464.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.2575, allocations: 4 kB / 464.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2575, allocations: 4 kB / 464.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.2575, allocations: 3.984 kB / 464.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.2593, allocations: 1.209 MB / 465.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2593, allocations: 0 / 465.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/0.2597, allocations: 99.88 kB / 465.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.514e-05/0.2598, allocations: 24.84 kB / 465.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.2599, allocations: 12 kB / 465.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008816/0.2608, allocations: 1.355 MB / 466.8 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2608, allocations: 0 / 466.8 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.2625, allocations: 0.8917 MB / 467.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.2627, allocations: 184.1 kB / 467.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.2627, allocations: 15.98 kB / 467.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004008/0.2631, allocations: 47.95 kB / 467.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.2632, allocations: 35.95 kB / 468 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.2633, allocations: 11.98 kB / 468 MB, free: 15.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005038/0.2638, allocations: 362.8 kB / 468.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2638, allocations: 0 / 468.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008599/0.2647, allocations: 251.3 kB / 468.6 MB, free: 14.43 MB / 350.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.001912/0.2666, allocations: 1.449 MB / 470 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002088/0.2687, allocations: 1.176 MB / 471.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.2687, allocations: 0 / 471.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.2693, allocations: 366.7 kB / 471.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.2701, allocations: 106.4 kB / 471.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009363/0.2795, allocations: 5.992 MB / 477.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.28, allocations: 0.8981 MB / 478.5 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003832/0.2804, allocations: 100.3 kB / 478.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.2807, allocations: 195.4 kB / 478.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2807, allocations: 4 kB / 478.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02917/0.3099, allocations: 12.86 MB / 491.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.3101, allocations: 238.3 kB / 491.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.278, allocations: 0 / 491.9 MB, free: 6.746 MB / 366.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)