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.001166/0.001165, allocations: 95.28 kB / 16.3 MB, free: 5.996 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.001496/0.001497, allocations: 184 kB / 17.2 MB, free: 5.914 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.281/1.281, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2745/0.2745, allocations: 38.07 MB / 330.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002786, allocations: 8 kB / 400.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2739, allocations: 59.16 MB / 459.2 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005964/0.2799, allocations: 5.324 MB / 464.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003983/0.2839, allocations: 2.585 MB / 467.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007866/0.2848, allocations: 33.06 kB / 467.2 MB, free: 24.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004926/0.2853, allocations: 112 kB / 467.3 MB, free: 24.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.2865, allocations: 400 kB / 467.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.2876, allocations: 361.7 kB / 468 MB, free: 24.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008567/0.2885, allocations: 0.5712 MB / 468.6 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.2896, allocations: 0.6289 MB / 469.2 MB, free: 23.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005059/0.2901, allocations: 312.4 kB / 469.5 MB, free: 23.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004151/0.2905, allocations: 291.5 kB / 469.8 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.759e-05/0.2906, allocations: 30.97 kB / 469.8 MB, free: 23.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006255/0.2912, allocations: 243.9 kB / 470.1 MB, free: 23.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.2914, allocations: 162.1 kB / 470.2 MB, free: 23.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.2916, allocations: 148.3 kB / 470.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.2926, allocations: 0.7899 MB / 471.2 MB, free: 22.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.2926, allocations: 0 / 471.2 MB, free: 22.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2926, allocations: 5.094 kB / 471.2 MB, free: 22.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.2926, allocations: 0 / 471.2 MB, free: 22.9 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.001774/0.2944, allocations: 0.9811 MB / 472.2 MB, free: 22.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.2945, allocations: 9.562 kB / 472.2 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.2946, allocations: 108.9 kB / 472.3 MB, free: 22.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001277/0.2959, allocations: 197.3 kB / 472.5 MB, free: 22.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008787/0.2968, allocations: 0.5153 MB / 473 MB, free: 21.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.2968, allocations: 49.17 kB / 473 MB, free: 21.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.883e-05/0.2969, allocations: 55.02 kB / 473.1 MB, free: 21.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.2983, allocations: 0.8004 MB / 473.9 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.2983, allocations: 1.906 kB / 473.9 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.096e-05/0.2984, allocations: 21.59 kB / 473.9 MB, free: 21.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-05/0.2985, allocations: 32.62 kB / 473.9 MB, free: 21.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.2999, allocations: 0.7594 MB / 474.7 MB, free: 21.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/0.3035, allocations: 2.949 MB / 477.6 MB, free: 18.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.3047, allocations: 0.6117 MB / 478.3 MB, free: 18.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.3048, allocations: 9.609 kB / 478.3 MB, free: 18.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006909/0.3055, allocations: 444.6 kB / 478.7 MB, free: 18.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.174e-06/0.3055, allocations: 0 / 478.7 MB, free: 18.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003866/0.3094, allocations: 2.208 MB / 480.9 MB, free: 16.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.3094, allocations: 110.1 kB / 481 MB, free: 16.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000626/0.3101, allocations: 478.4 kB / 481.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.017e-05/0.3101, allocations: 37.36 kB / 481.5 MB, free: 16.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.3103, allocations: 314.7 kB / 481.8 MB, free: 16.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.3105, allocations: 202.2 kB / 482 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.3105, allocations: 11.12 kB / 482 MB, free: 15.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.3106, allocations: 367.9 kB / 482.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005628/0.3111, allocations: 300.6 kB / 482.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006177/0.3118, allocations: 408.3 kB / 483.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/0.3124, allocations: 374.8 kB / 483.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3124, allocations: 0 / 483.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001953/0.3144, allocations: 1.062 MB / 484.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002418/0.3146, allocations: 1.082 MB / 485.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.3147, allocations: 7.938 kB / 485.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006256/0.3153, allocations: 205.6 kB / 485.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004571/0.3158, allocations: 119.9 kB / 485.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003304/0.3191, allocations: 3.914 MB / 489.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006168/0.3197, allocations: 64 kB / 489.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.758e-05/0.3198, allocations: 23.98 kB / 489.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.196e-06/0.3198, allocations: 4 kB / 489.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001472/0.3213, allocations: 0.8791 MB / 490.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3213, allocations: 4 kB / 490.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00042/0.3217, allocations: 169.8 kB / 491 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004274/0.3221, allocations: 123.8 kB / 491.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002419/0.3246, allocations: 3.669 MB / 494.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005567/0.3251, allocations: 60 kB / 494.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.3252, allocations: 23.98 kB / 494.8 MB, free: 3.199 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0003985/0.3256, allocations: 311.1 kB / 495.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.736e-05/0.3257, allocations: 59.34 kB / 495.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.3271, allocations: 0.8539 MB / 496.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3271, allocations: 4 kB / 496.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3272, allocations: 4 kB / 496.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/0.3272, allocations: 7.938 kB / 496.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.3294, allocations: 1.695 MB / 497.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3294, allocations: 3.984 kB / 497.8 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005403/0.33, allocations: 135.8 kB / 497.9 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002492/0.3302, allocations: 69.86 kB / 498 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.3303, allocations: 12 kB / 498 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.3325, allocations: 2.713 MB / 0.489 GB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.3325, allocations: 4.031 kB / 0.489 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.335, allocations: 1.43 MB / 0.4904 GB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003252/0.3353, allocations: 192.3 kB / 0.4906 GB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.55e-05/0.3354, allocations: 20 kB / 0.4906 GB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.3359, allocations: 59.92 kB / 0.4906 GB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3361, allocations: 56.48 kB / 0.4907 GB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.302e-05/0.3361, allocations: 20 kB / 0.4907 GB, free: 11.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000532/0.3367, allocations: 338.8 kB / 0.491 GB, free: 10.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3367, allocations: 0 / 0.491 GB, free: 10.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001057/0.3378, allocations: 264 kB / 0.4913 GB, free: 10.5 MB / 366.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.002803/0.3406, allocations: 2.472 MB / 0.4937 GB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002954/0.3435, allocations: 1.774 MB / 0.4954 GB, free: 6.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3436, allocations: 0 / 0.4954 GB, free: 6.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.3446, allocations: 0.622 MB / 0.496 GB, free: 5.445 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006891/0.3453, allocations: 110.9 kB / 0.4961 GB, free: 5.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00899/0.3543, allocations: 6.252 MB / 0.5022 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006422/0.355, allocations: 0.9586 MB / 0.5032 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005315/0.3555, allocations: 160.5 kB / 0.5033 GB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003792/0.3559, allocations: 227.4 kB / 0.5035 GB, free: 13.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3559, allocations: 0 / 0.5035 GB, free: 13.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03016/0.3861, allocations: 14.8 MB / 0.518 GB, free: 15 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/0.3863, allocations: 224.9 kB / 0.5182 GB, free: 14.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.327, allocations: 0 / 0.5182 GB, free: 14.76 MB / 398.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: