Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_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.001205/0.001204, allocations: 88.16 kB / 16.31 MB, free: 5.555 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.001166/0.001166, allocations: 182.4 kB / 17.21 MB, free: 5.473 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.723/1.723, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.186/0.186, allocations: 38.04 MB / 309.7 MB, free: 6.113 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.0005487/0.0005487, allocations: 16 kB / 376.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.299, allocations: 56.32 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005742/0.3048, allocations: 5.513 MB / 438.5 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003769/0.3086, allocations: 2.666 MB / 441.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005871/0.3093, allocations: 39.75 kB / 441.2 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005235/0.3098, allocations: 115.1 kB / 441.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009452/0.3108, allocations: 390 kB / 441.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009156/0.3117, allocations: 345.7 kB / 442 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009039/0.3126, allocations: 1.068 MB / 443.1 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008429/0.3134, allocations: 0.6404 MB / 443.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003526/0.3138, allocations: 326.5 kB / 444 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.3142, allocations: 366.4 kB / 444.4 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.574e-05/0.3143, allocations: 27.94 kB / 444.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.3148, allocations: 259.3 kB / 444.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.3149, allocations: 179.4 kB / 444.8 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.315, allocations: 149.3 kB / 445 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006202/0.3157, allocations: 0.791 MB / 445.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.3157, allocations: 0 / 445.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.3157, allocations: 0 / 445.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.3157, allocations: 0 / 445.8 MB, free: 5.887 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001763/0.3175, allocations: 1 MB / 446.8 MB, free: 4.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3175, allocations: 8.031 kB / 446.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.3176, allocations: 106.5 kB / 446.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.3187, allocations: 186.9 kB / 447.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007085/0.3194, allocations: 0.5238 MB / 447.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.3195, allocations: 45.31 kB / 447.6 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.514e-05/0.3196, allocations: 59.98 kB / 447.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.3207, allocations: 0.7943 MB / 448.5 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.3208, allocations: 4 kB / 448.5 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.777e-05/0.3208, allocations: 23.95 kB / 448.5 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-05/0.3209, allocations: 33.3 kB / 448.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.3221, allocations: 0.7623 MB / 449.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003617/0.3257, allocations: 2.935 MB / 452.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.3271, allocations: 0.608 MB / 452.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006667/0.3278, allocations: 382.7 kB / 453.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.945e-05/0.3278, allocations: 8.422 kB / 453.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007763/0.3286, allocations: 446.2 kB / 453.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.064e-06/0.3286, allocations: 0 / 453.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004052/0.3327, allocations: 2.206 MB / 455.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.3328, allocations: 107.4 kB / 456 MB, free: 11.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007461/0.3335, allocations: 486 kB / 456.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.3336, allocations: 37.7 kB / 456.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.3339, allocations: 316.5 kB / 456.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.3341, allocations: 193.2 kB / 457 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.3341, allocations: 16 kB / 457 MB, free: 10.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.3343, allocations: 370.7 kB / 457.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006088/0.3349, allocations: 297.1 kB / 457.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006597/0.3356, allocations: 418.9 kB / 458.1 MB, free: 9.102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006817/0.3363, allocations: 367.8 kB / 458.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3363, allocations: 0 / 458.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002099/0.3384, allocations: 1.056 MB / 459.5 MB, free: 7.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001508/0.3386, allocations: 211.3 kB / 459.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3386, allocations: 4 kB / 459.7 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006635/0.3392, allocations: 216.4 kB / 459.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004761/0.3397, allocations: 123.8 kB / 460 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004415/0.3442, allocations: 3.841 MB / 463.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.3447, allocations: 71.92 kB / 463.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.347e-05/0.3447, allocations: 20 kB / 464 MB, free: 2.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.3448, allocations: 7.953 kB / 464 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001683/0.3464, allocations: 0.8909 MB / 464.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3465, allocations: 0 / 464.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004598/0.3469, allocations: 169.8 kB / 465 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.3474, allocations: 123.8 kB / 465.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003457/0.3509, allocations: 3.618 MB / 468.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000468/0.3513, allocations: 63.94 kB / 468.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.984e-05/0.3514, allocations: 28 kB / 468.8 MB, free: 13.69 MB / 350.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.0003956/0.3518, allocations: 305.5 kB / 469.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.695e-05/0.3519, allocations: 63.25 kB / 469.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/0.3536, allocations: 0.8384 MB / 470 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.3536, allocations: 12 kB / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3536, allocations: 0 / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.3537, allocations: 3.984 kB / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/0.3564, allocations: 1.71 MB / 471.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3565, allocations: 0 / 471.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005708/0.357, allocations: 140 kB / 471.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/0.3573, allocations: 65.61 kB / 472 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.073e-05/0.3573, allocations: 19.98 kB / 472 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001878/0.3592, allocations: 2.686 MB / 474.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3592, allocations: 7.969 kB / 474.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.3614, allocations: 1.349 MB / 476 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.3617, allocations: 188.3 kB / 476.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.92e-05/0.3618, allocations: 16 kB / 476.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.3622, allocations: 67.92 kB / 476.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3624, allocations: 48.45 kB / 476.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.3625, allocations: 23.98 kB / 476.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004981/0.363, allocations: 350.8 kB / 476.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.363, allocations: 0 / 476.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001034/0.364, allocations: 264 kB / 477 MB, free: 5.117 MB / 350.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.002487/0.3665, allocations: 1.901 MB / 478.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.3697, allocations: 1.77 MB / 480.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.3697, allocations: 0 / 480.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3707, allocations: 0.622 MB / 481.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007503/0.3715, allocations: 134.3 kB / 481.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008108/0.3796, allocations: 4.639 MB / 486 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00078/0.3804, allocations: 0.9509 MB / 487 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00059/0.381, allocations: 156.5 kB / 487.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/0.3814, allocations: 235.3 kB / 487.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3814, allocations: 0 / 487.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03262/0.414, allocations: 14.86 MB / 0.4904 GB, free: 11.58 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.4143, allocations: 233.7 kB / 0.4907 GB, free: 11.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/2.559, allocations: 0 / 0.4907 GB, free: 11.33 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) Environment - environmentSimulation: